Merge pull request #47 from albertvisuals/main
Fix: JSON columns with default('[]') fail on MySQL 8
This commit is contained in:
commit
eae702e620
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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