Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in Meta.indexes/constraints/unique_together.

CompositePrimaryKeys are not supported in any of these options.
This commit is contained in:
Mariusz Felisiak 2024-12-11 21:37:23 +01:00 committed by Sarah Boyce
parent 322e49ba30
commit 2249370c86
4 changed files with 200 additions and 2 deletions

View file

@ -431,6 +431,9 @@ Models
(``db_table_comment``).
* **models.W047**: ``<database>`` does not support unique constraints with
nulls distinct.
* **models.E048**: ``constraints/indexes/unique_together`` refers to a
``CompositePrimaryKey`` ``<field name>``, but ``CompositePrimaryKey``\s are
not supported for that option.
Management Commands
-------------------