diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-07-31 00:53:20 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-14 09:05:11 +0200 |
commit | d0409548c6827f78378371802d67f89153b38c54 (patch) | |
tree | 3d938fd485e76fe83cb5d164b0dcd1b45d0d1ebf /lib/private/legacy/util.php | |
parent | d60bd936410c7b022dfc2b95a30c0276dc8dfdb3 (diff) | |
download | nextcloud-server-d0409548c6827f78378371802d67f89153b38c54.tar.gz nextcloud-server-d0409548c6827f78378371802d67f89153b38c54.zip |
instead of upsert, fallback to default query on PgSQL <= 9.4
because there is no upsert yet
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r-- | lib/private/legacy/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 32069053257..810f22fb9e5 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -978,9 +978,9 @@ class OC_Util { $data = $result->fetchRow(); if (isset($data['server_version'])) { $version = $data['server_version']; - if (version_compare($version, '9.5.0', '<')) { + if (version_compare($version, '9.0.0', '<')) { $errors[] = array( - 'error' => $l->t('PostgreSQL >= 9.5 required'), + 'error' => $l->t('PostgreSQL >= 9 required'), 'hint' => $l->t('Please upgrade your database version') ); } |