| @@ 831-834 (lines=4) @@ | ||
| 828 |             if (count($matches) > 4) { | |
| 829 | $precision = (int)$matches[5]; | |
| 830 | } | |
| 831 |             if ($type === 'tinyint' && $limit === 1) { | |
| 832 | $type = static::PHINX_TYPE_BOOLEAN; | |
| 833 | $limit = null; | |
| 834 | } | |
| 835 |             switch ($type) { | |
| 836 | case 'varchar': | |
| 837 | $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 | ||