diff options
| author | Akash Agrawal <akashrocksha@gmail.com> | 2019-08-11 06:56:44 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-08-11 03:28:01 +0200 |
| commit | 8a3a3280209118265845003b7fe3554aa3cd6da4 (patch) | |
| tree | a0f54c1dbbda029a9e87e8f100f96d941066c923 | |
| parent | c5cbb797d7b90aa5d262c46520e631c0ae7f5204 (diff) | |
[2.2.x] Fixed #30670 -- Doc'd SchemaEditor.add/remove_constraint().
Backport of af08a5441585393b287535b9417436b896bd8052 from master
| -rw-r--r-- | AUTHORS | 1 | ||||
| -rw-r--r-- | docs/ref/schema-editor.txt | 18 |
2 files changed, 19 insertions, 0 deletions
@@ -27,6 +27,7 @@ answer newbie questions, and generally made Django that much better: Ahmad Al-Ibrahim Ahmed Eltawela <https://github.com/ahmedabt> ajs <adi@sieker.info> + Akash Agrawal <akashrocksha@gmail.com> Akis Kesoglou <akiskesoglou@gmail.com> Aksel Ethem <aksel.ethem@gmail.com> Akshesh Doshi <aksheshdoshi+django@gmail.com> diff --git a/docs/ref/schema-editor.txt b/docs/ref/schema-editor.txt index 1edbeb93af..20cd59ad6a 100644 --- a/docs/ref/schema-editor.txt +++ b/docs/ref/schema-editor.txt @@ -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()`` --------------------------- |
