Opened 6 years ago

Last modified 6 years ago

#30062 closed New feature

Add UniqueConstraint condition parameter — at Initial Version

Reported by: Pavel Tyslacki Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top