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

Fix unique index constraint failure on item destroy #313

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

yjukaku
Copy link
Contributor

@yjukaku yjukaku commented Jun 5, 2018

Continuing on the work from #246, but this time applying the idea to the destroy callbacks.

With this fix, destroying an item in a list that has a unique DB constraint on the position column should not raise a DB error, as long as the sequential_updates option is enabled.

Fixes #267

@brendon
Copy link
Owner

brendon commented Jun 5, 2018

Looks good to me! Thanks @yjukaku :D

@brendon brendon merged commit 33851d6 into brendon:master Jun 5, 2018
@brendon
Copy link
Owner

brendon commented Jun 5, 2018

Released as 0.9.13

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.

Unique constraint violation on move_higher, move_lower, destroy
2 participants