From 3551fb537f403930763c01c85905baf3ad9b7fd8 Mon Sep 17 00:00:00 2001 From: Akshesh Date: Wed, 6 Jul 2016 22:38:34 +0530 Subject: [PATCH] Refs #26709 -- Documented SchemaEditor.add/remove_index(). --- docs/ref/schema-editor.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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()`` ---------------------------