mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6984 from dhensby/pulls/4/default-pdo
NEW DB Driver defaults to PDO
This commit is contained in:
commit
306d801258
@ -8,7 +8,7 @@
|
||||
*
|
||||
* Your database connection will be set up using these defines:
|
||||
* - 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_USERNAME: The database username (mandatory)
|
||||
* - SS_DATABASE_PASSWORD: The database password (mandatory)
|
||||
@ -87,7 +87,7 @@ if ($dbUser = getenv('SS_DATABASE_USERNAME')) {
|
||||
|
||||
/** @skipUpgrade */
|
||||
$databaseConfig = array(
|
||||
"type" => getenv('SS_DATABASE_CLASS') ?: 'MySQLDatabase',
|
||||
"type" => getenv('SS_DATABASE_CLASS') ?: 'MySQLPDODatabase',
|
||||
"server" => getenv('SS_DATABASE_SERVER') ?: 'localhost',
|
||||
"username" => $dbUser,
|
||||
"password" => getenv('SS_DATABASE_PASSWORD'),
|
||||
|
Loading…
Reference in New Issue
Block a user