DB migration fails due to PK and FK order #10
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-dbi#10
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?
We do all the constraints at the same time now. Previously we used to do primary keys when creating the table, which meant by the time we did foreign keys we were OK.
Now though, if we try to create a foreign key on a table that has not yet had it's primary key defined, it fails.
I think the easiest/best solution here would be to do two passes. One for primary keys, the next for all other constraints.
Completed
closed