Added basic persistance to notes

This commit is contained in:
Mitchell McCaffrey
2020-11-03 17:15:39 +11:00
parent 84af4c5845
commit 6c1d952855
5 changed files with 107 additions and 26 deletions

View File

@@ -268,6 +268,17 @@ function loadVersions(db) {
token.height = tokenSizes[token.id].height;
});
});
// v1.7.0 - Added note tool
db.version(16)
.stores({})
.upgrade((tx) => {
return tx
.table("states")
.toCollection()
.modify((state) => {
state.notes = {};
});
});
}
// Get the dexie database used in DatabaseContext