diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-07-06 22:38:34 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-07 10:21:25 -0400 |
| commit | 3551fb537f403930763c01c85905baf3ad9b7fd8 (patch) | |
| tree | ab7246783db1db01f6f5f88336857662b1a5931d /docs | |
| parent | 52442898e747e9d76bf6349938fa3dada6f0e887 (diff) | |
Refs #26709 -- Documented SchemaEditor.add/remove_index().
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 cdbb707c8d..fdbf7e72e6 100644 --- a/docs/ref/schema-editor.txt +++ b/docs/ref/schema-editor.txt @@ -67,6 +67,24 @@ unique constraints or indexes it requires. Drops the model's table in the database along with any unique constraints or indexes it has. +``add_index()`` +--------------- + +.. method:: BaseDatabaseSchemaEditor.add_index(model, index) + +.. versionadded:: 1.11 + +Adds ``index`` to ``model``’s table. + +``remove_index()`` +------------------ + +.. method:: BaseDatabaseSchemaEditor.remove_index(model, index) + +.. versionadded:: 1.11 + +Removes ``index`` from ``model``’s table. + ``alter_unique_together()`` --------------------------- |
