From 68a6636c06b42f1a2c98810391ab099ec60699e7 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 13 Nov 2024 20:48:38 -0500 Subject: [PATCH] - Fixed a bug where default value was set to empty instead of nothing --- src/Adapter/SQLite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/SQLite.php b/src/Adapter/SQLite.php index 17329ed..bf2588d 100644 --- a/src/Adapter/SQLite.php +++ b/src/Adapter/SQLite.php @@ -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" . ")" : "" );