From 010e8b29594df623f73dac2401a33a6c3d8f6a53 Mon Sep 17 00:00:00 2001 From: chme Date: Tue, 1 Jan 2019 09:38:02 +0100 Subject: [PATCH] [db] Fix missing creation of triggers for persistent ids in db init --- src/db_init.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/db_init.c b/src/db_init.c index 595d23ae..de4d34f3 100644 --- a/src/db_init.c +++ b/src/db_init.c @@ -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; }