| @@ 858-861 (lines=4) @@ | ||
| 855 | if (count($matches) > 4) { |
|
| 856 | $precision = (int)$matches[5]; |
|
| 857 | } |
|
| 858 | if ($type === 'tinyint' && $limit === 1) { |
|
| 859 | $type = static::PHINX_TYPE_BOOLEAN; |
|
| 860 | $limit = null; |
|
| 861 | } |
|
| 862 | switch ($type) { |
|
| 863 | case 'varchar': |
|
| 864 | $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 | ||