core: add migrations for notebooks & settings (#1020)

This commit is contained in:
Abdullah Atta
2022-09-21 11:47:09 +05:00
committed by GitHub
parent 6c613c6f1e
commit 7c99c3acb9
9 changed files with 244 additions and 16 deletions

View File

@@ -132,6 +132,7 @@ export default class Backup {
switch (version) {
case CURRENT_DATABASE_VERSION:
case 5.6:
case 5.5:
case 5.4:
case 5.3:
@@ -185,7 +186,12 @@ export default class Backup {
];
await this._db.syncer.acquireLock(async () => {
await this._migrator.migrate(collections, (id) => data[id], version);
await this._migrator.migrate(
this._db,
collections,
(id) => data[id],
version
);
});
}