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

Add --ignore-foreign-keys option to dolt table import #3406

Closed
zachmu opened this issue May 13, 2022 · 1 comment · Fixed by #3412
Closed

Add --ignore-foreign-keys option to dolt table import #3406

zachmu opened this issue May 13, 2022 · 1 comment · Fixed by #3412
Assignees
Labels
cli enhancement New feature or request

Comments

@zachmu
Copy link
Member

zachmu commented May 13, 2022

This is a common error:

dolt table import -u collections table.csv
The following table is used in a foreign key and does not work with import: collections
The recommended alternative is LOAD DATA

This should 1) just work but 2) if there are foreign key constraint violations that result from an import, it should be possible to ignore them with a command line flag.

@fulghum fulghum added cli enhancement New feature or request labels May 13, 2022
@VinaiRachakonda VinaiRachakonda linked a pull request May 17, 2022 that will close this issue
@VinaiRachakonda
Copy link
Contributor

This is now fixed and in main. I named the parameter disable-fk-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants