Enabled null for some form jsonb fields
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user