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

This commit is contained in:
mcndave committed 2024-11-13 20:48:38 -05:00
1 parent 70c6cde603
commit 68a6636c06
1 file changed
+1 -1
+1 -1
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" . ")" : "" );