Clear translatorCache table when resetting translators
This commit is contained in:
parent
91a3c27235
commit
abc4cd9dfe
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue