Delete one numbered backup lower on DB upgrade
This commit is contained in:
parent
b39054ddda
commit
664b17190a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ Zotero.Schema = new function(){
|
||||||
// directoryEntries.hasMoreElements() throws an error (possibly
|
// directoryEntries.hasMoreElements() throws an error (possibly
|
||||||
// because of the temporary SQLite journal file?), so we just look
|
// because of the temporary SQLite journal file?), so we just look
|
||||||
// for all versions
|
// for all versions
|
||||||
for (var i=maxPrevious; i>=29; i--) {
|
for (var i=maxPrevious; i>=28; i--) {
|
||||||
var fileName = 'zotero.sqlite.' + i + '.bak';
|
var fileName = 'zotero.sqlite.' + i + '.bak';
|
||||||
file.append(fileName);
|
file.append(fileName);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
|
|
Loading…
Reference in a new issue