core: remove unnecessary notes collection init before migration

This commit is contained in:
Abdullah Atta
2024-03-07 09:18:15 +05:00
parent 6e4700121a
commit 855203bd0e

View File

@@ -104,8 +104,6 @@ class Migrations {
if (!this.required() || this.migrating) return;
this.migrating = true;
await this.db.notes.init();
await this.migrator.migrate(this.db, collections, this.version);
await this.db.kv().write("v", CURRENT_DATABASE_VERSION);
this.version = CURRENT_DATABASE_VERSION;