mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #27236 -- Doc'd that AlterIndexTogether is no longer officially supported for Django 4.2+ migration files.
This commit is contained in:
parent
66f30dbf25
commit
7e3c9c3205
@ -102,9 +102,17 @@ subclass).
|
|||||||
|
|
||||||
.. class:: AlterIndexTogether(name, index_together)
|
.. class:: AlterIndexTogether(name, index_together)
|
||||||
|
|
||||||
Changes the model's set of custom indexes (the
|
Changes the model's set of custom indexes (the ``index_together`` option on the
|
||||||
:attr:`~django.db.models.Options.index_together` option on the ``Meta``
|
``Meta`` subclass).
|
||||||
subclass).
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
``AlterIndexTogether`` is officially supported only for pre-Django 4.2
|
||||||
|
migration files. For backward compatibility reasons, it's still part of the
|
||||||
|
public API, and there's no plan to deprecate or remove it, but it should
|
||||||
|
not be used for new migrations. Use
|
||||||
|
:class:`~django.db.migrations.operations.AddIndex` and
|
||||||
|
:class:`~django.db.migrations.operations.RemoveIndex` operations instead.
|
||||||
|
|
||||||
``AlterOrderWithRespectTo``
|
``AlterOrderWithRespectTo``
|
||||||
---------------------------
|
---------------------------
|
||||||
|
@ -310,6 +310,13 @@ Running the :djadmin:`makemigrations` command will generate a migration
|
|||||||
containing a :class:`~django.db.migrations.operations.RenameIndex` operation
|
containing a :class:`~django.db.migrations.operations.RenameIndex` operation
|
||||||
which will rename the existing index.
|
which will rename the existing index.
|
||||||
|
|
||||||
|
The ``AlterIndexTogether`` migration operation is now officially supported only
|
||||||
|
for pre-Django 4.2 migration files. For backward compatibility reasons, it's
|
||||||
|
still part of the public API, and there's no plan to deprecate or remove it,
|
||||||
|
but it should not be used for new migrations. Use
|
||||||
|
:class:`~django.db.migrations.operations.AddIndex` and
|
||||||
|
:class:`~django.db.migrations.operations.RemoveIndex` operations instead.
|
||||||
|
|
||||||
Miscellaneous
|
Miscellaneous
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user