webNeat / lumen-generators

A collection of generators for Lumen and Laravel 5.
MIT License
353 stars 95 forks source link

Pivot table migrations can come before their dependent tables #45

Open ShaunaGordon opened 7 years ago

ShaunaGordon commented 7 years ago

image

Due to the speed at which the files are generated, it can result in the timestamps being identical, and pivot tables coming before the tables that the pivot table relies on and has foreign keys to. Since the dependent tables don't exist yet, this results in a failed migration.

davidporos92 commented 7 years ago

👍 I've also faced this problem. Verry annoying