src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 991-994 (lines=4) @@
|
| 988 |
|
if (count($matches) > 4) { |
| 989 |
|
$precision = (int)$matches[5]; |
| 990 |
|
} |
| 991 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 992 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 993 |
|
$limit = null; |
| 994 |
|
} |
| 995 |
|
switch ($type) { |
| 996 |
|
case 'varchar': |
| 997 |
|
$type = static::PHINX_TYPE_STRING; |
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 |
|
|