From 24f442b91dd1e3e440ec929f4ad9907d53aa69bc Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 12 Apr 2022 12:26:51 +0200 Subject: [PATCH] Fixed DatabaseFeatures.supports_expression_indexes on MySQL with MyISAM. --- django/db/backends/mysql/features.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 834ea4f88f2..c4706fc1b0d 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -336,5 +336,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): def supports_expression_indexes(self): return ( not self.connection.mysql_is_mariadb + and self._mysql_storage_engine != "MyISAM" and self.connection.mysql_version >= (8, 0, 13) )