mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[db] Fix missing creation of triggers for persistent ids in db init
This commit is contained in:
parent
333c46318d
commit
010e8b2959
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user