tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
823 stars 93 forks source link

Ordering of sql queries to reflect dependencies #109

Open SakuraSound opened 3 years ago

SakuraSound commented 3 years ago

In using Aerich, I have at times had to rearrange the ordering of the SQL that is generated, in order to fix dependency issues. I am wondering if this is something that can be detected when generating the files, to order them in a way to avoid failing.

SakuraSound commented 3 years ago

I can think of a solution, but if anyone else has any ideas, it would love to hear it!

pmdevita commented 2 years ago

Just ran into this myself, would be nice to see fixed.