diff options
author | Josh Richards <josh.t.richards@gmail.com> | 2024-05-10 08:28:05 -0400 |
---|---|---|
committer | Josh <josh.t.richards@gmail.com> | 2024-05-10 16:41:29 -0400 |
commit | 3ce8c6d0db2124e9079407073eaabd3bb42d26cb (patch) | |
tree | 393b2ef221dbcf4f84d00e631f1d8434b9c10222 /apps | |
parent | f486be8da1210c5e020180be4eed1c2ed315965a (diff) | |
download | nextcloud-server-3ce8c6d0db2124e9079407073eaabd3bb42d26cb.tar.gz nextcloud-server-3ce8c6d0db2124e9079407073eaabd3bb42d26cb.zip |
fix: refactor postgresql check to match mariadb/mysql
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/SetupChecks/SupportedDatabase.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php index b2ae6f5a147..92077300333 100644 --- a/apps/settings/lib/SetupChecks/SupportedDatabase.php +++ b/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) { |