From 8654d465b66ca3eb3e1ab15caca075e289132ac3 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 04:25:36 +0000 Subject: [PATCH] MINOR Removed registered databases from installer, these are autodiscovered from sapphire/_register_database.php now (from r100903) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112209 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/install.php b/install.php index 409dcc6..d88f5ca 100644 --- a/install.php +++ b/install.php @@ -68,47 +68,7 @@ if(isset($_SERVER['HTTP_USER_AGENT'])) { } } -// Register the SilverStripe provided databases -DatabaseAdapterRegistry::register( - array( - 'class' => 'MySQLDatabase', - 'title' => 'MySQL 4.1+', - 'helperPath' => 'sapphire/dev/install/MySQLDatabaseConfigurationHelper.php', - 'supported' => function_exists('mysql_connect') - ) -); - -DatabaseAdapterRegistry::register( - array( - 'class' => 'MSSQLDatabase', - 'title' => 'SQL Server 2008', - 'helperPath' => 'mssql/code/MSSQLDatabaseConfigurationHelper.php', - 'supported' => (function_exists('mssql_connect') || function_exists('sqlsrv_connect')), - 'missingExtensionText' => 'Neither the mssql or sqlsrv PHP extensions are available. Please install or enable one of them and refresh this page.' - ) -); - -DatabaseAdapterRegistry::register( - array( - 'class' => 'PostgreSQLDatabase', - 'title' => 'PostgreSQL 8.3+', - 'helperPath' => 'postgresql/code/PostgreSQLDatabaseConfigurationHelper.php', - 'supported' => function_exists('pg_query'), - 'missingExtensionText' => 'The pgsql PHP extension is not available. Please install or enable it and refresh this page.' - ) -); - -DatabaseAdapterRegistry::register( - array( - 'class' => 'SQLite3Database', - 'title' => 'SQLite 3.3+', - 'helperPath' => 'sqlite3/code/SQLiteDatabaseConfigurationHelper.php', - 'supported' => (class_exists('SQLite3') || class_exists('PDO')), - 'missingExtensionText' => 'The SQLite3 and PDO classes are not available. Please install or enable them and refresh this page.' - ) -); - -// Discover any 3rd party ones +// Discover which databases are available DatabaseAdapterRegistry::autodiscover(); // Determine which external database modules are USABLE