From 69c922284ee170d9f2fa16568ea98b6aa3a61c99 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 10 Sep 2025 06:53:35 -0600 Subject: [PATCH] fix: remove the 'migrations' table creation that is done elsewhere --- src/db-sql/migration.ts | 6 ------ src/services/platforms/CapacitorPlatformService.ts | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/db-sql/migration.ts b/src/db-sql/migration.ts index 7dcbc9e2..8d5ccee5 100644 --- a/src/db-sql/migration.ts +++ b/src/db-sql/migration.ts @@ -156,12 +156,6 @@ const MIGRATIONS = [ -- Add hasBackedUpSeed field to settings (from registration-prompt-parity) ALTER TABLE settings ADD COLUMN hasBackedUpSeed BOOLEAN DEFAULT FALSE; - - -- Create migrations tracking table - CREATE TABLE IF NOT EXISTS migrations ( - name TEXT PRIMARY KEY, - applied_at TEXT NOT NULL DEFAULT (datetime('now')) - ); `, }, ]; diff --git a/src/services/platforms/CapacitorPlatformService.ts b/src/services/platforms/CapacitorPlatformService.ts index f31ac2e2..3707fa53 100644 --- a/src/services/platforms/CapacitorPlatformService.ts +++ b/src/services/platforms/CapacitorPlatformService.ts @@ -66,13 +66,13 @@ export class CapacitorPlatformService implements PlatformService { return this.initializationPromise; } - // Start initialization - this.initializationPromise = this._initialize(); try { + // Start initialization + this.initializationPromise = this._initialize(); await this.initializationPromise; } catch (error) { logger.error( - "[CapacitorPlatformService] Initialize method failed:", + "[CapacitorPlatformService] Initialize database method failed:", error, ); this.initializationPromise = null; // Reset on failure