- Fixed a bug where default value was set to empty instead of nothing

This commit is contained in:
Dave M. 2024-11-13 20:48:38 -05:00
parent 70c6cde603
commit 68a6636c06
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class SQLite implements AdapterInterface, MigrateInterface, SqlAdapterInterface
}
if (in_array($type, [ 'JSON', 'TEXT', 'BLOB', 'GEOMETRY' ])) {
$field->default = "";
unset($field->default);
}
return $typeOnly ? $type : $type . ( $length ? "($length" . ")" : "" );