lundi 30 juillet 2018

Laravel ignores onDelete('restrict')

$table->foreign('applicationstatus_id')->references('id')->on('applicationstatuses')->onDelete('restrict');

I have the above line in my applications table but its ot restricting delete, it goes on and deletes the record. This is Laravel. Please help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire