Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: refactor postgresql check to match mariadb/mysql
Signed-off-by: Josh Richards <[email protected]>
  • Loading branch information
joshtrichards committed May 10, 2024
commit 3ce8c6d0db2124e9079407073eaabd3bb42d26cb
3 changes: 2 additions & 1 deletion apps/settings/lib/SetupChecks/SupportedDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,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