Kaydet (Commit) 3551fb53 authored tarafından Akshesh's avatar Akshesh Kaydeden (comit) Tim Graham

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

üst 52442898
...@@ -67,6 +67,24 @@ unique constraints or indexes it requires. ...@@ -67,6 +67,24 @@ unique constraints or indexes it requires.
Drops the model's table in the database along with any unique constraints Drops the model's table in the database along with any unique constraints
or indexes it has. 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()`` ``alter_unique_together()``
--------------------------- ---------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment