| @@ 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; | |
| @@ 1164-1168 (lines=5) @@ | ||
| 1161 |             if (isset(self::$supportedColumnTypes[$typeLC])) { | |
| 1162 | // the type is an explicitly supported type | |
| 1163 | $name = $typeLC; | |
| 1164 |             } elseif ($typeLC === 'tinyint' && $limit == 1) { | |
| 1165 | // the type is a MySQL-style boolean | |
| 1166 | $name = static::PHINX_TYPE_BOOLEAN; | |
| 1167 | $limit = null; | |
| 1168 |             } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { | |
| 1169 | // the type is an alias for a supported type | |
| 1170 | $name = self::$supportedColumnTypeAliases[$typeLC]; | |
| 1171 |             } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { | |