src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 966-969 (lines=4) @@
|
| 963 |
|
if (count($matches) > 4) { |
| 964 |
|
$scale = (int)$matches[5]; |
| 965 |
|
} |
| 966 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 967 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 968 |
|
$limit = null; |
| 969 |
|
} |
| 970 |
|
switch ($type) { |
| 971 |
|
case 'varchar': |
| 972 |
|
$type = static::PHINX_TYPE_STRING; |
src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 1302-1307 (lines=6) @@
|
| 1299 |
|
$type = static::PHINX_TYPE_BINARY; |
| 1300 |
|
break; |
| 1301 |
|
} |
| 1302 |
|
if ($type === 'tinyint') { |
| 1303 |
|
if ($matches[3] === 1) { |
| 1304 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 1305 |
|
$limit = null; |
| 1306 |
|
} |
| 1307 |
|
} |
| 1308 |
|
|
| 1309 |
|
try { |
| 1310 |
|
// Call this to check if parsed type is supported. |