diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-18 08:38:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 08:38:08 +0200 |
commit | 19297de2fe5a9c47e471c64249366f39fe12f16a (patch) | |
tree | 207f9178810be4185758d9d90e81608f46cf9b25 /django/db/backends/mysql/features.py | |
parent | 2cec020f5bc462954d902bdad1a5955852cecff6 (diff) | |
download | django-19297de2fe5a9c47e471c64249366f39fe12f16a.tar.gz |
Fixed #33713 -- Dropped support for MariaDB 10.3.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r-- | django/db/backends/mysql/features.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 53c0652fce..5387dffb9c 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -52,17 +52,14 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def minimum_database_version(self): if self.connection.mysql_is_mariadb: - return (10, 3) + return (10, 4) else: return (5, 7) @cached_property def bare_select_suffix(self): - if ( - self.connection.mysql_is_mariadb and self.connection.mysql_version < (10, 4) - ) or ( - not self.connection.mysql_is_mariadb - and self.connection.mysql_version < (8,) + if not self.connection.mysql_is_mariadb and self.connection.mysql_version < ( + 8, ): return " FROM DUAL" return "" @@ -254,8 +251,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def can_introspect_check_constraints(self): if self.connection.mysql_is_mariadb: - version = self.connection.mysql_version - return version >= (10, 3, 10) + return True return self.connection.mysql_version >= (8, 0, 16) @cached_property |