laravel-convert-migrations icon indicating copy to clipboard operation
laravel-convert-migrations copied to clipboard

doesn't create options for the "on delete" attribute in foreign keys

Open chriz74x opened this issue 10 years ago • 0 comments

It just doesn't, example:

$table->foreign('user_id')->references('id')->on('users');

should be

$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');

chriz74x avatar Apr 27 '15 15:04 chriz74x