1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #26167 -- Changed default value of DatabaseFeatures.supports_expression_indexes to True.

This commit is contained in:
Hannes Ljungberg
2021-01-13 19:38:23 +01:00
committed by Mariusz Felisiak
parent b5cef91a91
commit ffe756d624
5 changed files with 7 additions and 4 deletions

View File

@@ -668,6 +668,12 @@ backends.
backends must implement ``DatabaseClient.settings_to_cmd_args_env()`` or
override ``DatabaseClient.runshell()``.
* Third-party database backends must implement support for functional indexes
(:attr:`.Index.expressions`) or set
``DatabaseFeatures.supports_expression_indexes`` to ``False``. If ``COLLATE``
is not a part of the ``CREATE INDEX`` statement, set
``DatabaseFeatures.collate_as_index_expression`` to ``True``.
:mod:`django.contrib.admin`
---------------------------