Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Change reactions column to nullable with default null

Sebastian Albert15cbe9616fbf
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 ee7769e76..ef1e40b20 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 @@ return new class extends Migration
$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();