| @@ 845-848 (lines=4) @@ | ||
| 842 | if (count($matches) > 4) { |
|
| 843 | $precision = (int)$matches[5]; |
|
| 844 | } |
|
| 845 | if ($type === 'tinyint' && $limit === 1) { |
|
| 846 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 847 | $limit = null; |
|
| 848 | } |
|
| 849 | switch ($type) { |
|
| 850 | case 'varchar': |
|
| 851 | $type = static::PHINX_TYPE_STRING; |
|
| @@ 911-916 (lines=6) @@ | ||
| 908 | $type = static::PHINX_TYPE_BINARY; |
|
| 909 | break; |
|
| 910 | } |
|
| 911 | if ($type === 'tinyint') { |
|
| 912 | if ($matches[3] === 1) { |
|
| 913 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 914 | $limit = null; |
|
| 915 | } |
|
| 916 | } |
|
| 917 | ||
| 918 | $this->getSqlType($type); |
|
| 919 | ||