src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 1114-1119 (lines=6) @@
|
| 1111 |
|
$type = static::PHINX_TYPE_BINARY; |
| 1112 |
|
break; |
| 1113 |
|
} |
| 1114 |
|
if ($type === 'tinyint') { |
| 1115 |
|
if ($matches[3] === 1) { |
| 1116 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 1117 |
|
$limit = null; |
| 1118 |
|
} |
| 1119 |
|
} |
| 1120 |
|
|
| 1121 |
|
$this->getSqlType($type); |
| 1122 |
|
|
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 1007-1010 (lines=4) @@
|
| 1004 |
|
if (count($matches) > 4) { |
| 1005 |
|
$precision = (int)$matches[5]; |
| 1006 |
|
} |
| 1007 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 1008 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 1009 |
|
$limit = null; |
| 1010 |
|
} |
| 1011 |
|
switch ($type) { |
| 1012 |
|
case 'varchar': |
| 1013 |
|
$type = static::PHINX_TYPE_STRING; |