Refs #33379 -- Fixed minimum supported version of MariaDB.
This commit is contained in:
parent
3c6f1fd1f8
commit
2cec020f5b
|
@ -52,7 +52,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||||
@cached_property
|
@cached_property
|
||||||
def minimum_database_version(self):
|
def minimum_database_version(self):
|
||||||
if self.connection.mysql_is_mariadb:
|
if self.connection.mysql_is_mariadb:
|
||||||
return (10, 2)
|
return (10, 3)
|
||||||
else:
|
else:
|
||||||
return (5, 7)
|
return (5, 7)
|
||||||
|
|
||||||
|
|
|
@ -107,8 +107,8 @@ class Tests(TestCase):
|
||||||
@mock.patch.object(connection, "get_database_version")
|
@mock.patch.object(connection, "get_database_version")
|
||||||
def test_check_database_version_supported(self, mocked_get_database_version):
|
def test_check_database_version_supported(self, mocked_get_database_version):
|
||||||
if connection.mysql_is_mariadb:
|
if connection.mysql_is_mariadb:
|
||||||
mocked_get_database_version.return_value = (10, 1)
|
mocked_get_database_version.return_value = (10, 2)
|
||||||
msg = "MariaDB 10.2 or later is required (found 10.1)."
|
msg = "MariaDB 10.3 or later is required (found 10.2)."
|
||||||
else:
|
else:
|
||||||
mocked_get_database_version.return_value = (5, 6)
|
mocked_get_database_version.return_value = (5, 6)
|
||||||
msg = "MySQL 5.7 or later is required (found 5.6)."
|
msg = "MySQL 5.7 or later is required (found 5.6)."
|
||||||
|
|
Loading…
Reference in New Issue