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
|
@@ 812-815 (lines=4) @@
|
809 |
|
if ( count( $matches ) > 4 ) { |
810 |
|
$precision = (int) $matches[5]; |
811 |
|
} |
812 |
|
if ( $type === 'tinyint' && $limit === 1 ) { |
813 |
|
$type = static::PHINX_TYPE_BOOLEAN; |
814 |
|
$limit = null; |
815 |
|
} |
816 |
|
switch ( $type ) { |
817 |
|
case 'varchar': |
818 |
|
$type = static::PHINX_TYPE_STRING; |