Skip to content

Commit

Permalink
fix: typos and refactor pg test to be similar to other dbs
Browse files Browse the repository at this point in the history
Signed-off-by: Josh <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards authored May 9, 2024
1 parent a6d63b0 commit b7f1e55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/settings/lib/SetupChecks/SupportedDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public function run(): SetupResult {
$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) {
Expand Down

0 comments on commit b7f1e55

Please sign in to comment.