Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // check PostgreSQL version
- try {
- $result = \OC_DB::executeAudited('SHOW SERVER_VERSION');
- $data = $result->fetchRow();
- if (isset($data['server_version'])) {
- $version = $data['server_version'];
- if (version_compare($version, '9.0.0', '<')) {
- $errors[] = array(
- 'error' => $l->t('PostgreSQL >= 9 required'),
- 'hint' => $l->t('Please upgrade your database version')
- );
- }
- }
- } catch (\Doctrine\DBAL\DBALException $e) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement