You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I almost exclusively use this library to write partial unique constraints. So I have nothing to add about situations where partial index is used for non unique. Sorry.
The text was updated successfully, but these errors were encountered:
this library is in maintenance mode. so you need to move away if you want to upgrade to django 3.0
I am in the midst of doing so.
here's how I'm upgrading.
if u use unique=True
General idea: switch to UniqueConstraint with condition available in django 2.2. see https://docs.djangoproject.com/en/3.0/ref/models/constraints/#condition for details
Step by Step
makemigrations
migrate
Done.
Step 2 and 3 can be compressed into a single step after you run step 2 and 3 separately once to gain confidence.
2 and 3 can become "replace partialindex with uniqueconstraint then
makemigrations
"An actual example I use
Originally
Now
I almost exclusively use this library to write partial unique constraints. So I have nothing to add about situations where partial index is used for non unique. Sorry.
The text was updated successfully, but these errors were encountered: