From abc4cd9dfe0eaa610f8694eb05165402f0713f05 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Aug 2018 22:35:13 -0400 Subject: [PATCH] Clear translatorCache table when resetting translators --- chrome/content/zotero/xpcom/schema.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index e284fa6ce6..315fadc9bf 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1226,6 +1226,10 @@ Zotero.Schema = new function(){ var sql = "DELETE FROM version WHERE schema IN " + "('translators', 'styles', 'repository', 'lastcheck')"; yield Zotero.DB.queryAsync(sql); + + sql = "DELETE FROM translatorCache"; + yield Zotero.DB.queryAsync(sql); + _dbVersions.repository = null; _dbVersions.lastcheck = null; @@ -1254,6 +1258,10 @@ Zotero.Schema = new function(){ var sql = "DELETE FROM version WHERE schema IN " + "('translators', 'repository', 'lastcheck')"; yield Zotero.DB.queryAsync(sql); + + sql = "DELETE FROM translatorCache"; + yield Zotero.DB.queryAsync(sql); + _dbVersions.repository = null; _dbVersions.lastcheck = null;