lundi 24 septembre 2018

error 1005 laravel because of migrations pariorities

i have some tables that are connected to each other. i should declare foreign key for those. when i doing this by migrations, the error 1005 appear. I know that this error due to migrations priorities. now i dont know how to solve this problem.

this is one of my migrations: categories migration

and this is another one: colors migration

And finally, the most important migration is: products migration

and i don't know how to declare foreign keys in another migration.

thanks for your helping.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire