You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/settings/lib/SetupChecks/SupportedDatabase.php
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -62,23 +62,29 @@ public function run(): SetupResult {
62
62
$row = $result->fetch();
63
63
$version = $row['Value'];
64
64
$versionlc = strtolower($version);
65
-
65
+
// we only care about X.Y not X.Y.Z differences
66
+
[$major, $minor, ] = explode('.', $versionlc);
67
+
$versionConcern = $major . '.' . $minor;
66
68
if (str_contains($versionlc, 'mariadb')) {
67
-
if (version_compare($versionlc, '10.2', '<')) {
68
-
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));
69
+
if (version_compare($versionConcern, '10.3', '<') || version_compare($versionConcern, '10.11', '>')) {
70
+
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));
69
71
}
70
72
} else {
71
-
if (version_compare($versionlc, '8', '<')) {
72
-
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));
73
+
if (version_compare($versionConcern, '8.0', '<') || version_compare($versionConcern, '8.3', '>')) {
74
+
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));
if (version_compare(strtolower($version), '9.6', '<')) {
81
-
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));
82
+
$versionlc = strtolower($version);
83
+
// we only care about X not X.Y or X.Y.Z differences
84
+
[$major, ] = explode('.', $versionlc);
85
+
$versionConcern = $major;
86
+
if (version_compare($versionConcern, '12', '<') || version_compare($versionConcern, '16', '>')) {
87
+
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));
0 commit comments