From 58adf1385a72580b27f47b31a486a3f779098934 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 7 Jan 2021 20:44:30 +0100 Subject: [PATCH] Debug Signed-off-by: Morris Jobke --- apps/settings/lib/SetupChecks/SupportedDatabase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php index fda0f55a00894..75eb8df12f798 100644 --- a/apps/settings/lib/SetupChecks/SupportedDatabase.php +++ b/apps/settings/lib/SetupChecks/SupportedDatabase.php @@ -67,6 +67,8 @@ public function check() { $row = $result->fetch(); $version = strtolower($row['Value']); + echo 'Platformversion ' . $version . PHP_EOL; + if (strpos($version, 'mariadb') !== false) { if (version_compare($version, '10.4', '<')) { $this->description = $this->l10n->t('MariaDB version "%s" is used. Nextcloud 21 will no longer support this version and requires MariaDB 10.4 or higher.', $row['Value']); @@ -86,6 +88,8 @@ public function check() { $result = $this->connection->prepare('SHOW server_version;'); $result->execute(); $row = $result->fetch(); + + echo 'Platformversion ' . $row['server_version'] . PHP_EOL; if (version_compare($row['server_version'], '9.6', '<')) { $this->description = $this->l10n->t('PostgreSQL version "%s" is used. Nextcloud 21 will no longer support this version and requires PostgreSQL 9.6 or higher.', $row['server_version']); return;