| @@ 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; |
|
| @@ 1316-1320 (lines=5) @@ | ||
| 1313 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
| 1314 | // the type is an explicitly supported type |
|
| 1315 | $name = $typeLC; |
|
| 1316 | } elseif ($typeLC === 'tinyint' && $limit == 1) { |
|
| 1317 | // the type is a MySQL-style boolean |
|
| 1318 | $name = static::PHINX_TYPE_BOOLEAN; |
|
| 1319 | $limit = null; |
|
| 1320 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
| 1321 | // the type is an alias for a supported type |
|
| 1322 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
| 1323 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |
|