| @@ 857-860 (lines=4) @@ | ||
| 854 | if (count($matches) > 4) { |
|
| 855 | $precision = (int)$matches[5]; |
|
| 856 | } |
|
| 857 | if ($type === 'tinyint' && $limit === 1) { |
|
| 858 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 859 | $limit = null; |
|
| 860 | } |
|
| 861 | switch ($type) { |
|
| 862 | case 'varchar': |
|
| 863 | $type = static::PHINX_TYPE_STRING; |
|
| @@ 915-920 (lines=6) @@ | ||
| 912 | $type = static::PHINX_TYPE_BINARY; |
|
| 913 | break; |
|
| 914 | } |
|
| 915 | if ($type === 'tinyint') { |
|
| 916 | if ($matches[3] === 1) { |
|
| 917 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 918 | $limit = null; |
|
| 919 | } |
|
| 920 | } |
|
| 921 | ||
| 922 | $this->getSqlType($type); |
|
| 923 | ||