mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +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() {
|
||||
if (this.dbVersion > CURRENT_DATABASE_VERSION) return;
|
||||
if (this.dbVersion >= CURRENT_DATABASE_VERSION) return;
|
||||
|
||||
await this._db.notes.init();
|
||||
const content = await this._db.content.all();
|
||||
|
||||
Reference in New Issue
Block a user