mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 05:15:49 +03:00
[GH-ISSUE #41] Order of Create Tables is wrong when using foreign keys #26
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CodingPeak on GitHub (Mar 3, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/41
Just a quick test resulted in 2 tables that should be created in a different order because the first references the second in a foreign key constraint.
@ali4533 commented on GitHub (Mar 11, 2017):
+1
@geremora commented on GitHub (Nov 23, 2017):
We found the same situation. Generated script does not have dependency order.
@llagerlof commented on GitHub (Nov 24, 2017):
Same issue here.
@jasdeepkhalsa commented on GitHub (Nov 24, 2017):
Thanks for pointing this out with an example! I can see why this could be problematic - it's also a complex problem to solve.
Essentially DBDiff needs to know exactly which tables have foreign key constraints in another table and use that information to effectively sort the order of the output SQL migration statements