diff --git a/database/migrations/2021_05_19_140326_create_forms_table.php b/database/migrations/2021_05_19_140326_create_forms_table.php index 7aa63a9..37892a1 100644 --- a/database/migrations/2021_05_19_140326_create_forms_table.php +++ b/database/migrations/2021_05_19_140326_create_forms_table.php @@ -58,8 +58,8 @@ class CreateFormsTable extends Migration if ($driver === 'mysql') { $table->jsonb('tags')->default(new Expression('(JSON_ARRAY())')); } else { - $table->jsonb('tags')->default('[]'); - } + $table->jsonb('tags')->default('[]')->nullable(); + } }); } diff --git a/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php b/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php index 03389a2..53568a9 100644 --- a/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php +++ b/database/migrations/2022_08_18_133641_add_removed_properties_to_forms.php @@ -21,7 +21,7 @@ return new class extends Migration if ($driver === 'mysql') { $table->jsonb('removed_properties')->default(new Expression("(JSON_ARRAY())")); } else { - $table->jsonb('removed_properties')->default("[]"); + $table->jsonb('removed_properties')->default("[]")->nullable(); } }); }