diff options
author | Josh Richards <josh.t.richards@gmail.com> | 2024-05-09 10:55:36 -0400 |
---|---|---|
committer | Josh <josh.t.richards@gmail.com> | 2024-05-10 16:41:29 -0400 |
commit | 2abd67cc029abee5739a43defaf0ab20184a15d4 (patch) | |
tree | dbf5ed284a71b3dbd98a5e00ee567b001beffcb8 /apps/settings/lib | |
parent | f6d4af8b2c5ba2c589c77e3bd73e634329a17b5c (diff) | |
download | nextcloud-server-2abd67cc029abee5739a43defaf0ab20184a15d4.tar.gz nextcloud-server-2abd67cc029abee5739a43defaf0ab20184a15d4.zip |
fix(setupChecks): update db version checks
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/SetupChecks/SupportedDatabase.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php index 5739bc17958..d073f4f39dc 100644 --- a/apps/settings/lib/SetupChecks/SupportedDatabase.php +++ b/apps/settings/lib/SetupChecks/SupportedDatabase.php @@ -64,12 +64,12 @@ class SupportedDatabase implements ISetupCheck { $versionlc = strtolower($version); if (str_contains($versionlc, 'mariadb')) { - if (version_compare($versionlc, '10.2', '<')) { - return SetupResult::warning($this->l10n->t('MariaDB version "%s" is used. Nextcloud 21 and higher do not support this version and require MariaDB 10.2 or higher.', $version)); + if (version_compare($versionlc, '10.3', '<') || version_compare($versionlc, '10.11', '>')) { + return SetupResult::warning($this->l10n->t('MariaDB version "%s" detected. MariaDB >=10.3 and <=10.11 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } else { - if (version_compare($versionlc, '8', '<')) { - return SetupResult::warning($this->l10n->t('MySQL version "%s" is used. Nextcloud 21 and higher do not support this version and require MySQL 8.0 or MariaDB 10.2 or higher.', $version)); + if (version_compare($versionlc, '8.0', '<') || version_compare($versionlc, '8.3', '>')) { + return SetupResult::warning($this->l10n->t('MySQL version "%s" detected. MySQL >=8.0 and <=8.3 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } } elseif ($databasePlatform instanceof PostgreSQLPlatform) { @@ -77,8 +77,8 @@ class SupportedDatabase implements ISetupCheck { $result->execute(); $row = $result->fetch(); $version = $row['server_version']; - if (version_compare(strtolower($version), '9.6', '<')) { - return SetupResult::warning($this->l10n->t('PostgreSQL version "%s" is used. Nextcloud 21 and higher do not support this version and require PostgreSQL 9.6 or higher.', $version)); + if (version_compare(strtolower($version), '12', '<') || version_compare(strtolower($version, '16', '>') { + return SetupResult::warning($this->l10n->t('PostgreSQL version "%s" detected. PostgreSQL >=12 and <=16 is suggested for best performance, stability and functionality with this version of Nextcloud.', $version)); } } elseif ($databasePlatform instanceof OraclePlatform) { $version = 'Oracle'; |