| @@ 850-853 (lines=4) @@ | ||
| 847 | if (count($matches) > 4) { |
|
| 848 | $precision = (int)$matches[5]; |
|
| 849 | } |
|
| 850 | if ($type === 'tinyint' && $limit === 1) { |
|
| 851 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 852 | $limit = null; |
|
| 853 | } |
|
| 854 | switch ($type) { |
|
| 855 | case 'varchar': |
|
| 856 | $type = static::PHINX_TYPE_STRING; |
|
| @@ 917-922 (lines=6) @@ | ||
| 914 | $type = static::PHINX_TYPE_BINARY; |
|
| 915 | break; |
|
| 916 | } |
|
| 917 | if ($type === 'tinyint') { |
|
| 918 | if ($matches[3] === 1) { |
|
| 919 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 920 | $limit = null; |
|
| 921 | } |
|
| 922 | } |
|
| 923 | ||
| 924 | $this->getSqlType($type); |
|
| 925 | ||