| @@ 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; |
|
| @@ 1299-1303 (lines=5) @@ | ||
| 1296 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
| 1297 | // the type is an explicitly supported type |
|
| 1298 | $name = $typeLC; |
|
| 1299 | } elseif ($typeLC === 'tinyint' && $limit == 1) { |
|
| 1300 | // the type is a MySQL-style boolean |
|
| 1301 | $name = static::PHINX_TYPE_BOOLEAN; |
|
| 1302 | $limit = null; |
|
| 1303 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
| 1304 | // the type is an alias for a supported type |
|
| 1305 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
| 1306 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |
|