Truemedia / slush-regenerator

A slush generator for many website things (Optimized for Laravel 5.2)
MIT License
0 stars 0 forks source link

Order migrations using foreign key constraints #18

Closed Truemedia closed 8 years ago

Truemedia commented 8 years ago

Due to foreign keys no being used there is an issue where migration will fail due to a related table not already existing. Need to somehow change file creation order or delay it to allow for table dependencies to be met.

Truemedia commented 8 years ago

This was fixed in the latest commit, all foreign keys exist in their own migrations created after all "table creation" migrations.