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

Allow optional conflict ignoring #3

Open
michal-juranyi opened this issue Oct 7, 2021 · 1 comment
Open

Allow optional conflict ignoring #3

michal-juranyi opened this issue Oct 7, 2021 · 1 comment

Comments

@michal-juranyi
Copy link

Hello,
thank you for creating this simple, yet useful tool.

I came across a situation when I would like to apply fixtures on already filled database (by previously applied fixtures or migrations) to add new data, but in that case it ends up with IntegrityError due to duplicate key (actually the whole record is same).

For such case, I would like to have an option to either ignore conflicts or update record (in eventual case of changed previously applied fixtures). I think it could be seamlessly done similar way as ignoring foreign key checks is implemented.

If you don't mind, I could prepare pull request for that ;)

@takehaya
Copy link
Owner

takehaya commented Oct 7, 2021

hi emjayko.

Thank you for using.
Yes, Im waiting for PR :)

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

2 participants