@@ 991-994 (lines=4) @@ | ||
988 | if (count($matches) > 4) { |
|
989 | $scale = (int)$matches[5]; |
|
990 | } |
|
991 | if ($type === 'tinyint' && $limit === 1) { |
|
992 | $type = static::PHINX_TYPE_BOOLEAN; |
|
993 | $limit = null; |
|
994 | } |
|
995 | switch ($type) { |
|
996 | case 'varchar': |
|
997 | $type = static::PHINX_TYPE_STRING; |
@@ 1393-1397 (lines=5) @@ | ||
1390 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
1391 | // the type is an explicitly supported type |
|
1392 | $name = $typeLC; |
|
1393 | } elseif ($typeLC === 'tinyint' && $limit == 1) { |
|
1394 | // the type is a MySQL-style boolean |
|
1395 | $name = static::PHINX_TYPE_BOOLEAN; |
|
1396 | $limit = null; |
|
1397 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
1398 | // the type is an alias for a supported type |
|
1399 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
1400 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |