Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Jan 7, 2021
1 parent 834d8a5 commit 58adf13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/settings/lib/SetupChecks/SupportedDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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;
Expand Down

0 comments on commit 58adf13

Please sign in to comment.