From f7566c34eadc037bc2b1f6834625b4e477781dcc Mon Sep 17 00:00:00 2001 From: Sebastian Albert <60854302+albertvisuals@users.noreply.github.com> Date: Tue, 19 May 2026 08:19:40 +0200 Subject: [PATCH] Change media column to nullable with default null --- database/migrations/2026_01_14_232321_create_posts_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2026_01_14_232321_create_posts_table.php b/database/migrations/2026_01_14_232321_create_posts_table.php index a4411363..bf9593a9 100644 --- a/database/migrations/2026_01_14_232321_create_posts_table.php +++ b/database/migrations/2026_01_14_232321_create_posts_table.php @@ -18,7 +18,7 @@ public function up(): void $table->uuid('workspace_id'); $table->uuid('user_id')->nullable(); $table->text('content')->nullable(); - $table->json('media')->default('[]'); + $table->json('media')->nullable()->default(null); $table->string('status')->default('draft'); $table->timestamp('scheduled_at')->nullable(); $table->timestamp('published_at')->nullable();