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