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:26:44 +0200 |
| commit | af08a5441585393b287535b9417436b896bd8052 (patch) | |
| tree | eb0e8ac563d614bb6fe959b7e143aa261b366554 /docs | |
| parent | 503f60ff570df5a7b1802cbf0e2e58067c167d95 (diff) | |
Fixed #30670 -- Doc'd SchemaEditor.add/remove_constraint().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/schema-editor.txt | 18 |
1 files changed, 18 insertions, 0 deletions
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()`` --------------------------- |
