Skip to content

Commit 9dc51e1

Browse files
author
Parashuram
committed
Issue 9: #9
Corrected versions being called only once .
1 parent 8765d7e commit 9dc51e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.indexeddb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
if (config && config.schema) {
383383
// Assuming that version is always an integer
384384
//console.log"Upgrading DB to ", db.version);
385-
for (var i = e.oldVersion; i <= e.newVersion; i++) {
385+
for (var i = e.oldVersion + 1; i <= e.newVersion; i++) {
386386
typeof config.schema[i] === "function" && config.schema[i].call(this, wrap.transaction(this.transaction));
387387
}
388388
}

0 commit comments

Comments
 (0)