Merge pull request #6984 from dhensby/pulls/4/default-pdo

NEW DB Driver defaults to PDO
This commit is contained in:
Damian Mooyman 2017-06-18 21:27:32 +12:00 committed by GitHub
commit 306d801258

View File

@ -8,7 +8,7 @@
* *
* Your database connection will be set up using these defines: * Your database connection will be set up using these defines:
* - SS_DATABASE_CLASS: The database class to use, MySQLDatabase, MSSQLDatabase, etc. defaults to * - SS_DATABASE_CLASS: The database class to use, MySQLDatabase, MSSQLDatabase, etc. defaults to
* MySQLDatabase * MySQLPDODatabase
* - SS_DATABASE_SERVER: The database server to use, defaulting to localhost * - SS_DATABASE_SERVER: The database server to use, defaulting to localhost
* - SS_DATABASE_USERNAME: The database username (mandatory) * - SS_DATABASE_USERNAME: The database username (mandatory)
* - SS_DATABASE_PASSWORD: The database password (mandatory) * - SS_DATABASE_PASSWORD: The database password (mandatory)
@ -87,7 +87,7 @@ if ($dbUser = getenv('SS_DATABASE_USERNAME')) {
/** @skipUpgrade */ /** @skipUpgrade */
$databaseConfig = array( $databaseConfig = array(
"type" => getenv('SS_DATABASE_CLASS') ?: 'MySQLDatabase', "type" => getenv('SS_DATABASE_CLASS') ?: 'MySQLPDODatabase',
"server" => getenv('SS_DATABASE_SERVER') ?: 'localhost', "server" => getenv('SS_DATABASE_SERVER') ?: 'localhost',
"username" => $dbUser, "username" => $dbUser,
"password" => getenv('SS_DATABASE_PASSWORD'), "password" => getenv('SS_DATABASE_PASSWORD'),