src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
|
@@ 960-963 (lines=4) @@
|
| 957 |
|
if (count($matches) > 4) { |
| 958 |
|
$precision = (int)$matches[5]; |
| 959 |
|
} |
| 960 |
|
if ($type === 'tinyint' && $limit === 1) { |
| 961 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 962 |
|
$limit = null; |
| 963 |
|
} |
| 964 |
|
switch ($type) { |
| 965 |
|
case 'varchar': |
| 966 |
|
$type = static::PHINX_TYPE_STRING; |
src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location
|
@@ 1093-1098 (lines=6) @@
|
| 1090 |
|
$type = static::PHINX_TYPE_BINARY; |
| 1091 |
|
break; |
| 1092 |
|
} |
| 1093 |
|
if ($type === 'tinyint') { |
| 1094 |
|
if ($matches[3] === 1) { |
| 1095 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
| 1096 |
|
$limit = null; |
| 1097 |
|
} |
| 1098 |
|
} |
| 1099 |
|
|
| 1100 |
|
try { |
| 1101 |
|
// Call this to check if parsed type is supported. |