From 15cbe9616fbf10b1f190bc96df86c987454d7897 Mon Sep 17 00:00:00 2001 From: Sebastian Albert <60854302+albertvisuals@users.noreply.github.com> Date: Tue, 19 May 2026 08:28:07 +0200 Subject: [PATCH] Change reactions column to nullable with default null --- .../migrations/2026_04_15_000001_create_post_comments_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2026_04_15_000001_create_post_comments_table.php b/database/migrations/2026_04_15_000001_create_post_comments_table.php index ee7769e7..ef1e40b2 100644 --- a/database/migrations/2026_04_15_000001_create_post_comments_table.php +++ b/database/migrations/2026_04_15_000001_create_post_comments_table.php @@ -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();