Refs #33379 -- Fixed minimum supported version of MariaDB.

This commit is contained in:
Mariusz Felisiak 2022-05-17 13:16:23 +02:00 committed by Carlton Gibson
parent 3c6f1fd1f8
commit 2cec020f5b
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
@cached_property
def minimum_database_version(self):
if self.connection.mysql_is_mariadb:
return (10, 2)
return (10, 3)
else:
return (5, 7)

View File

@ -107,8 +107,8 @@ class Tests(TestCase):
@mock.patch.object(connection, "get_database_version")
def test_check_database_version_supported(self, mocked_get_database_version):
if connection.mysql_is_mariadb:
mocked_get_database_version.return_value = (10, 1)
msg = "MariaDB 10.2 or later is required (found 10.1)."
mocked_get_database_version.return_value = (10, 2)
msg = "MariaDB 10.3 or later is required (found 10.2)."
else:
mocked_get_database_version.return_value = (5, 6)
msg = "MySQL 5.7 or later is required (found 5.6)."