commit 664b17190aba80914821ba115b9a1e03f7d6c63f
parent b39054dddae1c61a6235a7db8380099b768382ce
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 23 Feb 2009 04:32:08 +0000
Delete one numbered backup lower on DB upgrade
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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()) {