Enabled null for some form jsonb fields
This commit is contained in:
parent
8fd85776c6
commit
d2d207a160
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue