| @@ 1377-1381 (lines=5) @@ | ||
| 1374 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
| 1375 | // the type is an explicitly supported type |
|
| 1376 | $name = $typeLC; |
|
| 1377 | } elseif ($typeLC === 'tinyint' && $limit == 1) { |
|
| 1378 | // the type is a MySQL-style boolean |
|
| 1379 | $name = static::PHINX_TYPE_BOOLEAN; |
|
| 1380 | $limit = null; |
|
| 1381 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
| 1382 | // the type is an alias for a supported type |
|
| 1383 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
| 1384 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |
|
| @@ 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; |
|