mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
15 lines
325 B
PHP
15 lines
325 B
PHP
|
<?php
|
||
|
|
||
|
// Script called from ConfigureFromEnv.php
|
||
|
global $databaseConfig;
|
||
|
if(strpos($databaseConfig['type'], 'SQLite') === 0) {
|
||
|
|
||
|
if(defined('SS_SQLITE_DATABASE_PATH')) {
|
||
|
$databaseConfig['path'] = SS_SQLITE_DATABASE_PATH;
|
||
|
}
|
||
|
|
||
|
if(defined('SS_SQLITE_DATABASE_KEY')) {
|
||
|
$databaseConfig['key'] = SS_SQLITE_DATABASE_KEY;
|
||
|
}
|
||
|
}
|