diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-22 11:57:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 11:57:54 +0200 |
commit | 221b2f85febcf68629fc3a4007dc7edb5a305b91 (patch) | |
tree | dc9c8a156758abb9f468ea31ccc627a584ebb208 /django/db/backends/mysql/features.py | |
parent | 2f144323756fc6f8517e357c540f3570356d9eba (diff) | |
download | django-221b2f85febcf68629fc3a4007dc7edb5a305b91.tar.gz |
Fixed #33129 -- Dropped support for MariaDB 10.2.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r-- | django/db/backends/mysql/features.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index b51025e358..3b1b23a585 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -184,7 +184,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def supports_column_check_constraints(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 2, 1) + return True return self.connection.mysql_version >= (8, 0, 16) supports_table_check_constraints = property(operator.attrgetter('supports_column_check_constraints')) @@ -193,7 +193,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): def can_introspect_check_constraints(self): if self.connection.mysql_is_mariadb: version = self.connection.mysql_version - return (version >= (10, 2, 22) and version < (10, 3)) or version >= (10, 3, 10) + return version >= (10, 3, 10) return self.connection.mysql_version >= (8, 0, 16) @cached_property @@ -205,7 +205,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def has_select_for_update_nowait(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 3, 0) + return True return self.connection.mysql_version >= (8, 0, 1) @cached_property @@ -244,7 +244,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def supports_json_field(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 2, 7) + return True return self.connection.mysql_version >= (5, 7, 8) @cached_property |