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

Dropping tables with foreign key constraints fails #21

Open
angusvb opened this issue Oct 25, 2021 · 0 comments
Open

Dropping tables with foreign key constraints fails #21

angusvb opened this issue Oct 25, 2021 · 0 comments

Comments

@angusvb
Copy link

angusvb commented Oct 25, 2021

When trying to restore a database that has foreign key constraints - with dropExisting enabled - the MysqlImportService returns e.g.:
Cannot drop table 'address' referenced by a foreign key constraint 'FKditu6lr4ek16tkxtdsne0gxib' on table 'users'.

Probably needed to disable foreign key checks before executing the drop.

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