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 84b1367 commit 182fd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/migrations/create_partners_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CreatePartnersTable extends Migration
$table->id();
$table->boolean('homepage')->default(0);
$table->integer('position')->unsigned()->default(1);
$table->foreignId('image_id')->nullable();
$table->foreignId('image_id')->nullable()->constrained('files')->nullOnDelete();
$table->json('status')->default(new Expression('(JSON_OBJECT())'));
$table->json('title')->default(new Expression('(JSON_OBJECT())'));
$table->json('slug')->default(new Expression('(JSON_OBJECT())'));
Expand Down

0 comments on commit 182fd34

Please sign in to comment.