added unit tests
This commit is contained in:
11
db_init.php
11
db_init.php
@ -3,8 +3,15 @@
|
||||
// Shared helpers for opening, creating, and saving the encrypted SQLite database.
|
||||
require_once __DIR__ . '/common.php';
|
||||
|
||||
define('QDB_PATH', __DIR__ . '/uploads/questionnaire_database');
|
||||
define('QDB_LOCK', __DIR__ . '/uploads/.qdb_lock');
|
||||
if (defined('QDB_TEST_UPLOADS')) {
|
||||
define('QDB_UPLOADS_DIR', QDB_TEST_UPLOADS);
|
||||
define('QDB_PATH', QDB_UPLOADS_DIR . '/questionnaire_database');
|
||||
define('QDB_LOCK', QDB_UPLOADS_DIR . '/.qdb_lock');
|
||||
} else {
|
||||
define('QDB_UPLOADS_DIR', __DIR__ . '/uploads');
|
||||
define('QDB_PATH', QDB_UPLOADS_DIR . '/questionnaire_database');
|
||||
define('QDB_LOCK', QDB_UPLOADS_DIR . '/.qdb_lock');
|
||||
}
|
||||
define('QDB_SCHEMA', __DIR__ . '/schema.sql');
|
||||
define('QDB_VERSION', 6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user