src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 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 |
|
|
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 833-836 (lines=4) @@
|
| 830 |
|
if (count($matches) > 4) { |
| 831 |
|
$precision = (int)$matches[5]; |
| 832 |
|
} |
| 833 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 834 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 835 |
|
$limit = null; |
| 836 |
|
} |
| 837 |
|
switch ($type) { |
| 838 |
|
case 'varchar': |
| 839 |
|
$type = static::PHINX_TYPE_STRING; |