silverstripe-sqlite3/_configure_database.php
2022-08-01 16:23:18 +12:00

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;
}
}