From 855203bd0e73050de2cbabd3480fa2b5d50b13d4 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 7 Mar 2024 09:18:15 +0500 Subject: [PATCH] core: remove unnecessary notes collection init before migration --- packages/core/src/api/migrations.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/core/src/api/migrations.ts b/packages/core/src/api/migrations.ts index 779d8235b..9dd966cc4 100644 --- a/packages/core/src/api/migrations.ts +++ b/packages/core/src/api/migrations.ts @@ -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;