Skip to content

Commit

Permalink
nullOnDelete() method
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed May 27, 2022
1 parent 6b62f14 commit 81b3408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/migrations/create_places_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CreatePlacesTable extends Migration
$table->string('email')->nullable();
$table->string('phone')->nullable();
$table->string('website')->nullable();
$table->foreignId('image_id')->nullable();
$table->foreignId('image_id')->nullable()->constrained('files')->nullOnDelete();
$table->string('latitude', 30)->nullable();
$table->string('longitude', 30)->nullable();
$table->json('status')->default(new Expression('(JSON_OBJECT())'));
Expand Down

0 comments on commit 81b3408

Please sign in to comment.