| @@ 861-864 (lines=4) @@ | ||
| 858 | if (count($matches) > 4) { |
|
| 859 | $precision = (int) $matches[5]; |
|
| 860 | } |
|
| 861 | if ($type === 'tinyint' && $limit === 1) { |
|
| 862 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 863 | $limit = null; |
|
| 864 | } |
|
| 865 | switch ($type) { |
|
| 866 | case 'varchar': |
|
| 867 | $type = static::PHINX_TYPE_STRING; |
|
| @@ 926-931 (lines=6) @@ | ||
| 923 | $type = static::PHINX_TYPE_BINARY; |
|
| 924 | break; |
|
| 925 | } |
|
| 926 | if ($type === 'tinyint') { |
|
| 927 | if ($matches[3] === 1) { |
|
| 928 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 929 | $limit = null; |
|
| 930 | } |
|
| 931 | } |
|
| 932 | ||
| 933 | $this->getSqlType($type); |
|
| 934 | ||