Delete one numbered backup lower on DB upgrade

This commit is contained in:
Dan Stillman 2009-02-23 04:32:08 +00:00
parent b39054ddda
commit 664b17190a

View file

@ -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()) {