go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 681 forks source link

Migration issue #721

Open AlessandroSechi opened 5 months ago

AlessandroSechi commented 5 months ago

Explain your user case and expected results

Migration succeed on SQLITE, but fails on Postgres due to wrong order in tables creation (cities is created before regions). Apparently even in SQLITE order is wrong (but not sure how logging is handled)