Skip to content

Commit

Permalink
add on cascade on delete for donation
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Sep 5, 2023
1 parent c9e732e commit 1ccaa19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up(): void
{
Schema::create('donations', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(\App\Models\User::class)->nullable()->constrained();
$table->foreignIdFor(\App\Models\User::class)->nullable()->constrained()->cascadeOnDelete();
$table->foreignIdFor(\App\Models\Organization::class)->constrained()->cascadeOnDelete();
$table->foreignIdFor(\App\Models\Project::class)->constrained()->cascadeOnDelete();
$table->foreignIdFor(\App\Models\ChampionshipStage::class)->nullable()->constrained()->cascadeOnDelete();
Expand Down

0 comments on commit 1ccaa19

Please sign in to comment.