#30062: Add UniqueConstraint condition parameter
-------------------------------------+-------------------------------------
Reporter: Pavel | Owner: nobody
Tyslacki |
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
According [https://code.djangoproject.com/ticket/29641] and
[https://code.djangoproject.com/ticket/29547] add support of conditional
unique constraint.
Postgresql and sqlite support it as unique index: `CREATE UNIQUE INDEX ...
WHERE condition`, for unsupported databases this constraint will not be
applied at all.
`unique_together` can be marked as deprecated in future as
`index_together` is.
--
Ticket URL: <https://code.djangoproject.com/ticket/30062>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.e90f3627e55442d536dfe50fa9f56d91%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.