Fix MariaDB/MySQL version check

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2020-04-21 22:29:24 +02:00
parent 474fae352d
commit 10081802f6
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']));
}