mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR: SQLiteDatabase defaults to the sqlite3 class instead of the PDO class
This commit is contained in:
parent
e76d193b1e
commit
5504bf1901
@ -23,7 +23,7 @@ if(in_array($databaseConfig['type'], $classes)) {
|
||||
);
|
||||
|
||||
// The SQLite3 class is available in PHP 5.3 and newer
|
||||
if(class_exists('SQLite3') && $databaseConfig['type'] == 'SQLite3Database') {
|
||||
if(class_exists('SQLite3') && $databaseConfig['type'] != 'SQLitePDODatabase') {
|
||||
$databaseConfig['type'] = 'SQLite3Database';
|
||||
} else {
|
||||
$databaseConfig['type'] = 'SQLitePDODatabase';
|
||||
|
Loading…
Reference in New Issue
Block a user