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
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -64,13 +64,13 @@ public function run(): SetupResult {
64
64
$versionlc = strtolower($version);
65
65
// we only care about X.Y not X.Y.Z differences
66
66
[$major, $minor, ] = explode('.', $versionlc);
67
-
$versionlc = $major . '.' . $minor;
67
+
$versionConcern = $major . '.' . $minor;
68
68
if (str_contains($versionlc, 'mariadb')) {
69
-
if (version_compare($versionlc, '10.3', '<') || version_compare($versionlc, '10.11', '>')) {
69
+
if (version_compare($versionConcern, '10.3', '<') || version_compare($versionConcern, '10.11', '>')) {
70
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));
71
71
}
72
72
} else {
73
-
if (version_compare($versionlc, '8.0', '<') || version_compare($versionlc, '8.3', '>')) {
73
+
if (version_compare($versionConcern, '8.0', '<') || version_compare($versionConcern, '8.3', '>')) {
74
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));
75
75
}
76
76
}
@@ -82,8 +82,8 @@ public function run(): SetupResult {
82
82
$versionlc = strtolower($version);
83
83
// we only care about X not X.Y or X.Y.Z differences
84
84
[$major, ] = explode('.', $versionlc);
85
-
$versionlc = $major;
86
-
if (version_compare($versionlc, '12', '<') || version_compare($versionlc, '16', '>')) {
85
+
$versionConcern = $major;
86
+
if (version_compare($versionConcern, '12', '<') || version_compare($versionConcern, '16', '>')) {
87
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