src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 903-908 (lines=6) @@
|
| 900 |
|
$type = static::PHINX_TYPE_BINARY; |
| 901 |
|
break; |
| 902 |
|
} |
| 903 |
|
if ($type === 'tinyint') { |
| 904 |
|
if ($matches[3] === 1) { |
| 905 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 906 |
|
$limit = null; |
| 907 |
|
} |
| 908 |
|
} |
| 909 |
|
|
| 910 |
|
$this->getSqlType($type); |
| 911 |
|
|
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 834-837 (lines=4) @@
|
| 831 |
|
if (count($matches) > 4) { |
| 832 |
|
$precision = (int)$matches[5]; |
| 833 |
|
} |
| 834 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 835 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 836 |
|
$limit = null; |
| 837 |
|
} |
| 838 |
|
switch ($type) { |
| 839 |
|
case 'varchar': |
| 840 |
|
$type = static::PHINX_TYPE_STRING; |