samedi 23 juin 2018

Unable to delete a record when created foreign-key constraints manually in mysql without using migration.

I have created database tables manually and i have also created foreign key constraints in tables manually without using migration. now when i am going to delete a record it giving me following error-

Integrity constraint violation: Cannot delete or update a parent row: a foreign key constraint fails

Note: i can't use migration because database was already created.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire