src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 895-900 (lines=6) @@
|
| 892 |
|
$type = static::PHINX_TYPE_BINARY; |
| 893 |
|
break; |
| 894 |
|
} |
| 895 |
|
if ($type === 'tinyint') { |
| 896 |
|
if ($matches[3] === 1) { |
| 897 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 898 |
|
$limit = null; |
| 899 |
|
} |
| 900 |
|
} |
| 901 |
|
|
| 902 |
|
$this->getSqlType($type); |
| 903 |
|
|
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 869-872 (lines=4) @@
|
| 866 |
|
if (count($matches) > 4) { |
| 867 |
|
$precision = (int)$matches[5]; |
| 868 |
|
} |
| 869 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 870 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 871 |
|
$limit = null; |
| 872 |
|
} |
| 873 |
|
switch ($type) { |
| 874 |
|
case 'varchar': |
| 875 |
|
$type = static::PHINX_TYPE_STRING; |