Enabled null for some form jsonb fields

This commit is contained in:
Julien Nahum 2023-12-02 15:23:57 +01:00
parent 8fd85776c6
commit d2d207a160
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ 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();
}
});
}

View File

@ -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();
}
});
}