diff options
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r-- | django/db/backends/mysql/features.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 7b9a90ab06..1261d9e9a6 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -344,3 +344,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): and self._mysql_storage_engine != "MyISAM" and self.connection.mysql_version >= (8, 0, 13) ) + + @cached_property + def can_rename_index(self): + if self.connection.mysql_is_mariadb: + return self.connection.mysql_version >= (10, 5, 2) + return True |