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
django.db.utils.IntegrityError when upgrading to pulpcore 3.22 #3495
Comments
Full stacktrace below. I believe the issue is that the subquery in this line will return null if there's no labels for a model which violates the non-null constraint on 3d67cc1#diff-1a15d2d8642c07f47172cac10d8c48b6a9229b6081510f66f9e32ba95659bf5bR411
|
Thank you for finding this! |
mdellweg
added a commit
to mdellweg/pulpcore
that referenced
this issue
Jan 11, 2023
A not null constraint exception was risen when objects with and without labels of the same type existed. The fix will limit the update to only those objects that actually had labels. fixes pulp#3495
mdellweg
added a commit
to mdellweg/pulpcore
that referenced
this issue
Jan 11, 2023
A not null constraint exception was risen when objects with and without labels of the same type existed. The fix will limit the update to only those objects that actually had labels. fixes pulp#3495
mdellweg
added a commit
to mdellweg/pulpcore
that referenced
this issue
Jan 11, 2023
A not null constraint exception was risen when objects with and without labels of the same type existed. The fix will limit the update to only those objects that actually had labels. fixes pulp#3495
mdellweg
added a commit
that referenced
this issue
Jan 11, 2023
A not null constraint exception was risen when objects with and without labels of the same type existed. The fix will limit the update to only those objects that actually had labels. fixes #3495
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
pulpcore 3.22.0
Describe the bug
When upgrading to pulpcore 3.22, the pulp_labels migration fails with:
To Reproduce
Expected behavior
No migration failure.
The text was updated successfully, but these errors were encountered: