fix: refactor postgresql check to match mariadb/mysql

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
pull/45241/head
Josh Richards 2 years ago committed by Josh
parent f486be8da1
commit 3ce8c6d0db
  1. 3
      apps/settings/lib/SetupChecks/SupportedDatabase.php

@ -79,7 +79,8 @@ class SupportedDatabase implements ISetupCheck {
$result->execute();
$row = $result->fetch();
$version = $row['server_version'];
if (version_compare(strtolower($version), '12', '<') || version_compare(strtolower($version, '16', '>') {
$versionlc = strtolower($version);
if (version_compare($versionlc, '12', '<') || version_compare($versionlc, '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) {

Loading…
Cancel
Save