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
return SetupResult::warning($this->l10n->t('The old server-side-encryption format is enabled. We recommend disabling this.'), $this->urlGenerator->linkToDocs('admin-sse-legacy-format'));
$result = $this->connection->prepare("SHOW VARIABLES LIKE 'version';");
59
+
$result->execute();
60
+
$row = $result->fetch();
61
+
$version = $row['Value'];
62
+
$versionlc = strtolower($version);
68
63
69
-
if (str_contains($version, 'mariadb')) {
70
-
if (version_compare($version, '10.2', '<')) {
71
-
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.', $row['Value']));
72
-
}
73
-
} else {
74
-
if (version_compare($version, '8', '<')) {
75
-
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.', $row['Value']));
76
-
}
64
+
if (str_contains($versionlc, 'mariadb')) {
65
+
if (version_compare($versionlc, '10.2', '<')) {
66
+
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));
77
67
}
78
-
break;
79
-
case SqlitePlatform::class:
80
-
break;
81
-
case PostgreSQL100Platform::class: # extends PostgreSQL94Platform
if (version_compare($row['server_version'], '9.6', '<')) {
87
-
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.', $row['server_version']));
68
+
} else {
69
+
if (version_compare($versionlc, '8', '<')) {
70
+
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));
if (version_compare(strtolower($version), '9.6', '<')) {
79
+
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));
return SetupResult::warning($this->l10n->t('Invalid UUIDs of LDAP users or groups have been found. Please review your "Override UUID detection" settings in the Expert part of the LDAP configuration and use "occ ldap:update-uuid" to update them.'));
0 commit comments