| @@ 1408-1412 (lines=5) @@ | ||
| 1405 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
| 1406 | // the type is an explicitly supported type |
|
| 1407 | $name = $typeLC; |
|
| 1408 | } elseif ($typeLC === 'tinyint' && $limit === 1) { |
|
| 1409 | // the type is a MySQL-style boolean |
|
| 1410 | $name = static::PHINX_TYPE_BOOLEAN; |
|
| 1411 | $limit = null; |
|
| 1412 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
| 1413 | // the type is an alias for a supported type |
|
| 1414 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
| 1415 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |
|
| @@ 1015-1018 (lines=4) @@ | ||
| 1012 | if (count($matches) > 4) { |
|
| 1013 | $scale = (int)$matches[5]; |
|
| 1014 | } |
|
| 1015 | if ($type === 'tinyint' && $limit === 1) { |
|
| 1016 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 1017 | $limit = null; |
|
| 1018 | } |
|
| 1019 | switch ($type) { |
|
| 1020 | case 'varchar': |
|
| 1021 | $type = static::PHINX_TYPE_STRING; |
|