| @@ 1333-1337 (lines=5) @@ | ||
| 1330 | if (isset(self::$supportedColumnTypes[$typeLC])) { |
|
| 1331 | // the type is an explicitly supported type |
|
| 1332 | $name = $typeLC; |
|
| 1333 | } elseif ($typeLC === 'tinyint' && $limit == 1) { |
|
| 1334 | // the type is a MySQL-style boolean |
|
| 1335 | $name = static::PHINX_TYPE_BOOLEAN; |
|
| 1336 | $limit = null; |
|
| 1337 | } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) { |
|
| 1338 | // the type is an alias for a supported type |
|
| 1339 | $name = self::$supportedColumnTypeAliases[$typeLC]; |
|
| 1340 | } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) { |
|
| @@ 998-1001 (lines=4) @@ | ||
| 995 | if (count($matches) > 4) { |
|
| 996 | $scale = (int)$matches[5]; |
|
| 997 | } |
|
| 998 | if ($type === 'tinyint' && $limit === 1) { |
|
| 999 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 1000 | $limit = null; |
|
| 1001 | } |
|
| 1002 | switch ($type) { |
|
| 1003 | case 'varchar': |
|
| 1004 | $type = static::PHINX_TYPE_STRING; |
|