Fixed DatabaseFeatures.supports_expression_indexes on MySQL with MyISAM.

This commit is contained in:
Mariusz Felisiak 2022-04-12 12:26:51 +02:00 committed by GitHub
parent 0ad5316f22
commit 24f442b91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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