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 support for specifying extra command line options during database dump and load #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

someonewithpc
Copy link

I'm running into an error that can be solved by adding --complete-insert to the mysqldump command, caused by having a structure where a non-unique identifier follows the actual identifier:

CREATE TABLE `amendment_events` (
  `id` int NOT NULL AUTO_INCREMENT,
  `amendment_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  # ...
) #...

And the generated dump has

INSERT INTO `amendment_events` VALUES
(44,'2014-06-06 06:42:40',NULL,44,'new',18),

i.e., the columns are not specified, but 44 actually refers to amendment_id, not id, which is leading to errors when importing.

Note: We're using a relatively old version of MySQL, so I don't know if this is a known bug

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

Successfully merging this pull request may close these issues.

1 participant