Skip to content

Commit

Permalink
Fixed #34949 -- Clarified when UniqueConstraints with include/nulls_d…
Browse files Browse the repository at this point in the history
…istinct are not created.
  • Loading branch information
jordanbae authored and felixxm committed Jan 15, 2024
1 parent f92641a commit 4fec1d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ref/models/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ For example::
will allow filtering on ``room`` and ``date``, also selecting ``full_name``,
while fetching data only from the index.

``include`` is supported only on PostgreSQL.
Unique constraints with non-key columns are ignored for databases besides
PostgreSQL.

Non-key columns have the same database restrictions as :attr:`Index.include`.

Expand Down Expand Up @@ -272,7 +273,8 @@ For example::
creates a unique constraint that only allows one row to store a ``NULL`` value
in the ``ordering`` column.

``nulls_distinct`` is ignored for databases besides PostgreSQL 15+.
Unique constraints with ``nulls_distinct`` are ignored for databases besides
PostgreSQL 15+.

``violation_error_code``
------------------------
Expand Down

0 comments on commit 4fec1d2

Please sign in to comment.