mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 15:05:37 +00:00
MINOR: _config.php was missing
This commit is contained in:
parent
3a60c5c180
commit
787820dd35
13
_config.php
Normal file
13
_config.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if(defined('SS_DATABASE_CLASS') && SS_DATABASE_CLASS == 'SQLite3Database') {
|
||||||
|
global $databaseConfig;
|
||||||
|
$databaseConfig = array(
|
||||||
|
'type' => 'SQLite3Database',
|
||||||
|
'database' => (defined('SS_DATABASE_PREFIX') ? SS_DATABASE_PREFIX : '') . $database . (defined('SS_DATABASE_SUFFIX') ? SS_DATABASE_SUFFIX : ''),
|
||||||
|
'path' => defined('SS_SQLITE3_DATABASE_PATH') && SS_SQLITE3_DATABASE_PATH ? SS_SQLITE3_DATABASE_PATH : ASSETS_PATH,
|
||||||
|
'key' => defined('SS_SQLITE3_DATABASE_KEY') && SS_SQLITE3_DATABASE_KEY ? SS_SQLITE3_DATABASE_KEY : 'SQLite3DatabaseKey',
|
||||||
|
'memory' => true,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user