Added database upgrade for map resolutions

This commit is contained in:
Mitchell McCaffrey 2020-07-18 16:57:47 +10:00
parent f1986c0c14
commit bd9ea18572

View File

@ -117,6 +117,18 @@ function loadVersions(db) {
}
});
});
// v1.4.2 - Added map resolutions
db.version(6)
.stores({})
.upgrade((tx) => {
return tx
.table("maps")
.toCollection()
.modify((map) => {
map.resolutions = {};
map.quality = "original";
});
});
}
// Get the dexie database used in DatabaseContext