Merge pull request #16461 from nextcloud/fix/noid/pgsql-version

fixes the check for postgresql
This commit is contained in:
Roeland Jago Douma 2019-07-26 12:32:04 +02:00 committed by GitHub
commit 323f40a493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -978,9 +978,9 @@ class OC_Util {
$data = $result->fetchRow();
if (isset($data['server_version'])) {
$version = $data['server_version'];
if (version_compare($version, '9.0.0', '<')) {
if (version_compare($version, '9.5.0', '<')) {
$errors[] = array(
'error' => $l->t('PostgreSQL >= 9 required'),
'error' => $l->t('PostgreSQL >= 9.5 required'),
'hint' => $l->t('Please upgrade your database version')
);
}