mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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:
parent
322e49ba30
commit
2249370c86
4 changed files with 200 additions and 2 deletions
|
@ -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
|
||||
-------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue