Change reactions column to nullable with default null
This commit is contained in:
parent
f7566c34ea
commit
15cbe9616f
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public function up(): void
|
|||
$table->uuid('user_id')->nullable();
|
||||
$table->uuid('parent_id')->nullable();
|
||||
$table->text('body');
|
||||
$table->json('reactions')->default('[]');
|
||||
$table->json('reactions')->nullable()->default(null);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('post_id')->references('id')->on('posts')->cascadeOnDelete();
|
||||
|
|
|
|||
Loading…
Reference in a new issue