This commit is contained in:
12
db_init.php
12
db_init.php
@ -3,9 +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');
|
||||
define('QDB_SCHEMA', __DIR__ . '/schema.sql');
|
||||
if (!defined('QDB_PATH')) {
|
||||
define('QDB_PATH', __DIR__ . '/uploads/questionnaire_database');
|
||||
}
|
||||
if (!defined('QDB_LOCK')) {
|
||||
define('QDB_LOCK', __DIR__ . '/uploads/.qdb_lock');
|
||||
}
|
||||
if (!defined('QDB_SCHEMA')) {
|
||||
define('QDB_SCHEMA', __DIR__ . '/schema.sql');
|
||||
}
|
||||
define('QDB_VERSION', 3);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user