mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
18 lines
684 B
PHP
18 lines
684 B
PHP
<?php
|
|
|
|
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
|
|
use SilverStripe\PostgreSQL\PostgreSQLDatabaseConfigurationHelper;
|
|
|
|
DatabaseAdapterRegistry::register(array(
|
|
/** @skipUpgrade */
|
|
'class' => 'PostgreSQLDatabase',
|
|
'module' => 'postgresql',
|
|
'title' => 'PostgreSQL 8.3+ (using pg_connect)',
|
|
'helperPath' => __DIR__.'/code/PostgreSQLDatabaseConfigurationHelper.php',
|
|
'helperClass' => PostgreSQLDatabaseConfigurationHelper::class,
|
|
'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.'
|
|
));
|