Change reactions column to nullable with default null

This commit is contained in:
Sebastian Albert 2026-05-19 08:28:07 +02:00 committed by GitHub
parent f7566c34ea
commit 15cbe9616f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();