File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22
33use Illuminate\Database\Migrations\Migration;
4+ use Illuminate\Database\Query\Expression;
45use Illuminate\Database\Schema\Blueprint;
56use Illuminate\Support\Facades\Schema;
67
@@ -20,11 +21,11 @@ class CreatePlacesTable extends Migration
2021 $table->foreignId('image_id')->nullable();
2122 $table->string('latitude', 30)->nullable();
2223 $table->string('longitude', 30)->nullable();
23- $table->json('status');
24- $table->json('title');
25- $table->json('slug');
26- $table->json('summary');
27- $table->json('body');
24+ $table->json('status')->default(new Expression('(JSON_OBJECT())')) ;
25+ $table->json('title')->default(new Expression('(JSON_OBJECT())')) ;
26+ $table->json('slug')->default(new Expression('(JSON_OBJECT())')) ;
27+ $table->json('summary')->default(new Expression('(JSON_OBJECT())')) ;
28+ $table->json('body')->default(new Expression('(JSON_OBJECT())')) ;
2829 $table->timestamps();
2930 });
3031 }
You can’t perform that action at this time.
0 commit comments