Fix: Introducing foreign key constraint on table may cause cycles or multiple cascade paths. Specify

preview_player
Показать описание
Fix: Introducing foreign key constraint on table may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY Constraints.
could not create constraint or index
Рекомендации по теме
Комментарии
Автор

You saved my life man, please live forever!

EmileGamerPro
Автор

Hey, You had to drop the database and it worked, actually I was with the same issue and your solution was the most appropiate for me. Thanks

dev.ricardotorres
Автор

Thank you very much ! You helped me solve a problem and make progress !

goverdhanjayaram
Автор

thanks this is the only thing that worked. Altough it is annoying we need to drop the db and migration files

gilleshamelink
Автор

Is it possible not to delete or drop the table to resolve that?

GameSpreePH
Автор

Thanks! Not sure why dropping the database was the solution for me, but it was.

jstnflnt
Автор

if you are working on live project so we have a alot of data in database. then how to solve it we cant me drop the database

carneedyou
Автор

is there any way to fix the error without dropping the database ?

rahmonpro