MoeSaid
3 months ago
121
4
Laravel

Migration does not register in order

Posted 3 months ago by MoeSaid

hi, guys, i have been working on this issue for two days now,

simply its a Foreign Key Issue with migration order,

when I run the migration, it runs as it supposed to, with the timestamp order as when it has been created, somehow tables never register in the database in the same order that they get migrated with,

some tables are relay on to reference Foreign Key to, works fine on localhost but when i export, tables get exported with the database order which starts to create an issue when I imported to any other database.

6WTnh.png 6WIoj.png

Please sign in or create an account to participate in this conversation.