Fix config handling
This commit is contained in:
parent
fad3d80f39
commit
fca35ade9e
18 changed files with 125 additions and 139 deletions
src
|
@ -13,7 +13,7 @@ static database_transaction_lock *transaction_lock;
|
|||
void
|
||||
database_init()
|
||||
{
|
||||
int rc = sqlite3_open(global_config.database, &global_database);
|
||||
int rc = sqlite3_open(global_config->database, &global_database);
|
||||
|
||||
if(rc)
|
||||
{
|
||||
|
@ -21,6 +21,8 @@ database_init()
|
|||
exit(1);
|
||||
}
|
||||
|
||||
LOGGER_DEBUG("Opened database %s\n", global_config->database);
|
||||
|
||||
database_migrate();
|
||||
|
||||
sqlite3_exec(global_database, "PRAGMA foreign_keys = ON", 0, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue