mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: do not run migrations if db is on the same version
This commit is contained in:
@@ -16,7 +16,7 @@ class Migrations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async migrate() {
|
async migrate() {
|
||||||
if (this.dbVersion > CURRENT_DATABASE_VERSION) return;
|
if (this.dbVersion >= CURRENT_DATABASE_VERSION) return;
|
||||||
|
|
||||||
await this._db.notes.init();
|
await this._db.notes.init();
|
||||||
const content = await this._db.content.all();
|
const content = await this._db.content.all();
|
||||||
|
|||||||
Reference in New Issue
Block a user