Skip to content

Beautiful Open-Source Form Builder

Enabled null for some form jsonb fields

Julien Nahumd2d207a16029
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 7aa63a9a8..37892a112 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 03389a296..53568a955 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();
}
});
}