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

This commit is contained in:
thecodrr
2020-12-08 13:20:38 +05:00
parent 61dd1cdcb9
commit 13be2e5035

View File

@@ -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();