Skip to content

Commit

Permalink
make_on_delete_null
Browse files Browse the repository at this point in the history
  • Loading branch information
omar95-pero committed Nov 27, 2023
1 parent ab58148 commit a3a1b86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function up(): void

// Relationships
$table->foreign('agent_id')->references('id')->on('agents')->onDelete('cascade');
$table->foreign('auth_token_id')->references('id')->on('personal_access_tokens')->onDelete('null');
$table->foreign('auth_token_id')->references('id')->on('personal_access_tokens')->onDelete('set null');

});
}
Expand Down

0 comments on commit a3a1b86

Please sign in to comment.