mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
14 lines
351 B
PHP
14 lines
351 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;
|
|
}
|
|
}
|