From 664b17190aba80914821ba115b9a1e03f7d6c63f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Feb 2009 04:32:08 +0000 Subject: [PATCH] Delete one numbered backup lower on DB upgrade --- chrome/content/zotero/xpcom/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index c94254257d..adc1f264b2 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -135,7 +135,7 @@ Zotero.Schema = new function(){ // directoryEntries.hasMoreElements() throws an error (possibly // because of the temporary SQLite journal file?), so we just look // for all versions - for (var i=maxPrevious; i>=29; i--) { + for (var i=maxPrevious; i>=28; i--) { var fileName = 'zotero.sqlite.' + i + '.bak'; file.append(fileName); if (file.exists()) {