Browse Source

Refs #26709 -- Documented SchemaEditor.add/remove_index().

Akshesh 8 years ago
parent
commit
3551fb537f
1 changed files with 18 additions and 0 deletions
  1. 18 0
      docs/ref/schema-editor.txt

+ 18 - 0
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()``
 ---------------------------