Merge pull request #653 from chme/db_init

[db] Fix missing creation of triggers for persistent ids in db init
This commit is contained in:
ejurgensen 2019-01-01 10:35:40 +01:00 committed by GitHub
commit faa41ee206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,6 +526,18 @@ db_init_tables(sqlite3 *hdl)
}
ret = db_init_indices(hdl);
if (ret < 0)
{
DPRINTF(E_FATAL, L_DB, "DB init error: failed to create indices\n");
return -1;
}
ret = db_init_triggers(hdl);
if (ret < 0)
{
DPRINTF(E_FATAL, L_DB, "DB init error: failed to create triggers\n");
return -1;
}
return ret;
}