I have a users table which has many debitur. I already set the user_id in debitur with onDelete('cascade').
Schema::table('debitur', function ($table) {
$table->index('user_id');
$table
->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade')
->onUpdate('cascade');
Now I want to modify the onDelete('cascade') into no action, but the docs say for a no action I shouldn't have set onDelete().
So how do I modify it? should I drop the foreign then set it again, or can I just re-run schema::table omitting the onDelete()?