mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[2.2.x] Fixed #30670 -- Doc'd SchemaEditor.add/remove_constraint().
Backport of af08a54415
from master
This commit is contained in:
parent
c5cbb797d7
commit
8a3a328020
2 changed files with 19 additions and 0 deletions
|
@ -81,6 +81,24 @@ Adds ``index`` to ``model``’s table.
|
|||
|
||||
Removes ``index`` from ``model``’s table.
|
||||
|
||||
``add_constraint()``
|
||||
--------------------
|
||||
|
||||
.. method:: BaseDatabaseSchemaEditor.add_constraint(model, constraint)
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
Adds ``constraint`` to ``model``'s table.
|
||||
|
||||
``remove_constraint()``
|
||||
-----------------------
|
||||
|
||||
.. method:: BaseDatabaseSchemaEditor.remove_constraint(model, constraint)
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
Removes ``constraint`` from ``model``'s table.
|
||||
|
||||
``alter_unique_together()``
|
||||
---------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue