Merge pull request #20590 from J0WI/fix-mysql-setup
[stable16] Fix MariaDB/MySQL version check
This commit is contained in:
commit
15788b1605
|
@ -49,7 +49,7 @@ class MySQL extends AbstractDatabase {
|
||||||
if (version_compare($version, '10.4', '>=')) {
|
if (version_compare($version, '10.4', '>=')) {
|
||||||
throw new DatabaseSetupException(sprintf('Unsupported MariaDB version %s, Nextcloud 16 requires a version lower than 10.4', $row['Value']));
|
throw new DatabaseSetupException(sprintf('Unsupported MariaDB version %s, Nextcloud 16 requires a version lower than 10.4', $row['Value']));
|
||||||
}
|
}
|
||||||
} {
|
} else {
|
||||||
if (version_compare($version, '8', '>=')) {
|
if (version_compare($version, '8', '>=')) {
|
||||||
throw new DatabaseSetupException(sprintf('Unsupported MySQL version %s, Nextcloud 16 requires a version lower than 8.0', $row['Value']));
|
throw new DatabaseSetupException(sprintf('Unsupported MySQL version %s, Nextcloud 16 requires a version lower than 8.0', $row['Value']));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue