Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not run migrations if db is on the same version

thecodrr13be2e503529
diff --git a/packages/core/api/migrations.js b/packages/core/api/migrations.js
index 910133f96..687d5144f 100644
--- a/packages/core/api/migrations.js
+++ b/packages/core/api/migrations.js
@@ -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();