| @@ 840-843 (lines=4) @@ | ||
| 837 | if (count($matches) > 4) { |
|
| 838 | $precision = (int)$matches[5]; |
|
| 839 | } |
|
| 840 | if ($type === 'tinyint' && $limit === 1) { |
|
| 841 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 842 | $limit = null; |
|
| 843 | } |
|
| 844 | switch ($type) { |
|
| 845 | case 'varchar': |
|
| 846 | $type = static::PHINX_TYPE_STRING; |
|
| @@ 934-939 (lines=6) @@ | ||
| 931 | $type = static::PHINX_TYPE_BINARY; |
|
| 932 | break; |
|
| 933 | } |
|
| 934 | if ($type === 'tinyint') { |
|
| 935 | if ($matches[3] === 1) { |
|
| 936 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 937 | $limit = null; |
|
| 938 | } |
|
| 939 | } |
|
| 940 | ||
| 941 | $this->getSqlType($type); |
|
| 942 | ||