From 9c14a66139512012f336062409c5beb2b930d151 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 3 Apr 2021 20:13:56 -0500 Subject: plugins/data: properly clear history data when loading new file --- plugins/data/data_history.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/data/data_history.lua b/plugins/data/data_history.lua index fbc6e2048bf..78a43e1fd5e 100644 --- a/plugins/data/data_history.lua +++ b/plugins/data/data_history.lua @@ -80,6 +80,8 @@ local function init() if dbver then db.exec("DELETE FROM \"" .. file .. "\"") db.check("deleting history") + db.exec("DELETE FROM \"" .. file .. "_idx\"") + db.check("deleting index") stmt = db.prepare("UPDATE version SET version = ? WHERE datfile = ?") db.check("updating history version") else -- cgit v1.2.3