silverstripe-sqlite3/_configure_database.php

14 lines
351 B
PHP
Raw Normal View History

<?php
// Script called from ConfigureFromEnv.php
global $databaseConfig;
2022-08-01 05:48:26 +02:00
if (strpos($databaseConfig['type'], 'SQLite') === 0) {
if (defined('SS_SQLITE_DATABASE_PATH')) {
$databaseConfig['path'] = SS_SQLITE_DATABASE_PATH;
}
2022-08-01 05:48:26 +02:00
if (defined('SS_SQLITE_DATABASE_KEY')) {
$databaseConfig['key'] = SS_SQLITE_DATABASE_KEY;
}
}