Merge pull request #20590 from J0WI/fix-mysql-setup

[stable16] Fix MariaDB/MySQL version check
This commit is contained in:
John Molakvoæ 2020-04-22 08:15:31 +02:00 committed by GitHub
commit 15788b1605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class MySQL extends AbstractDatabase {
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']));
}
} {
} else {
if (version_compare($version, '8', '>=')) {
throw new DatabaseSetupException(sprintf('Unsupported MySQL version %s, Nextcloud 16 requires a version lower than 8.0', $row['Value']));
}