silverstripe-postgresql/_register_database.php

18 lines
684 B
PHP
Raw Normal View History

<?php
2016-09-01 06:22:17 +02:00
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
2016-10-26 03:24:00 +02:00
use SilverStripe\PostgreSQL\PostgreSQLDatabaseConfigurationHelper;
2016-09-01 06:22:17 +02:00
DatabaseAdapterRegistry::register(array(
2016-07-04 04:37:00 +02:00
/** @skipUpgrade */
2016-01-20 21:49:28 +01:00
'class' => 'PostgreSQLDatabase',
2016-10-26 03:24:00 +02:00
'module' => 'postgresql',
2016-01-20 21:49:28 +01:00
'title' => 'PostgreSQL 8.3+ (using pg_connect)',
2016-10-26 03:24:00 +02:00
'helperPath' => __DIR__.'/code/PostgreSQLDatabaseConfigurationHelper.php',
'helperClass' => PostgreSQLDatabaseConfigurationHelper::class,
2016-01-20 21:49:28 +01:00
'supported' => function_exists('pg_connect'),
'missingExtensionText' =>
'The <a href="http://php.net/pgsql">pgsql</a> PHP extension is not
available. Please install or enable it and refresh this page.'
));