Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PK columns with FK constraints don't migrate #45

Open
tonykaralis opened this issue Oct 24, 2021 · 0 comments
Open

PK columns with FK constraints don't migrate #45

tonykaralis opened this issue Oct 24, 2021 · 0 comments

Comments

@tonykaralis
Copy link
Contributor

This bug was found when fixing #43.

One suggestion was to drop all foreign keys then recreate them in order to allow for the primary keys to be migrated. @oskardudycz suggested a better alternative whereby we simply disable the constraints, run migrations and then re-enable them after, see https://stackoverflow.com/a/49584660/10966454.

Commit with failing test, tonykaralis@6b159f3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant