mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix: only compare minor mariadb version differences
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
parent
2abd67cc02
commit
f486be8da1
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@ class SupportedDatabase implements ISetupCheck {
|
|||
$row = $result->fetch();
|
||||
$version = $row['Value'];
|
||||
$versionlc = strtolower($version);
|
||||
|
||||
// we only care about X.Y not X.Y.Z differences
|
||||
[$major, $minor, ] = explode('.', $versionlc);
|
||||
$versionlc = $major . '.' . $minor;
|
||||
if (str_contains($versionlc, 'mariadb')) {
|
||||
if (version_compare($versionlc, '10.3', '<') || version_compare($versionlc, '10.11', '>')) {
|
||||
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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue