1
0
mirror of https://github.com/django/django.git synced 2025-03-28 02:00:45 +00:00

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

This commit is contained in:
Akshesh 2016-07-06 22:38:34 +05:30 committed by Tim Graham
parent 52442898e7
commit 3551fb537f

View File

@ -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()``
---------------------------