mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #30670 -- Doc'd SchemaEditor.add/remove_constraint().
This commit is contained in:
parent
503f60ff57
commit
af08a54415
1
AUTHORS
1
AUTHORS
@ -27,6 +27,7 @@ answer newbie questions, and generally made Django that much better:
|
|||||||
Ahmad Al-Ibrahim
|
Ahmad Al-Ibrahim
|
||||||
Ahmed Eltawela <https://github.com/ahmedabt>
|
Ahmed Eltawela <https://github.com/ahmedabt>
|
||||||
ajs <adi@sieker.info>
|
ajs <adi@sieker.info>
|
||||||
|
Akash Agrawal <akashrocksha@gmail.com>
|
||||||
Akis Kesoglou <akiskesoglou@gmail.com>
|
Akis Kesoglou <akiskesoglou@gmail.com>
|
||||||
Aksel Ethem <aksel.ethem@gmail.com>
|
Aksel Ethem <aksel.ethem@gmail.com>
|
||||||
Akshesh Doshi <aksheshdoshi+django@gmail.com>
|
Akshesh Doshi <aksheshdoshi+django@gmail.com>
|
||||||
|
@ -81,6 +81,24 @@ Adds ``index`` to ``model``’s table.
|
|||||||
|
|
||||||
Removes ``index`` from ``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()``
|
``alter_unique_together()``
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user