fix bug column text is can't have default value

This commit is contained in:
Geriano
2022-10-14 07:58:04 +07:00
parent 46fba12a92
commit 9a7a0d504f
2 changed files with 18 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ return new class extends Migration
$table->unsignedTinyInteger('position');
$table->boolean('enable')->default(true);
$table->boolean('deleteable')->default(true);
$table->longText('actives')->default('[]');
$table->longText('actives')
->nullable()
->default(null);
$table->timestamps();
$table->foreign('parent_id')