From 529b53c66cd6feed6f96d62b0f2fa62144c93f09 Mon Sep 17 00:00:00 2001 From: 4gray Date: Wed, 7 Jan 2026 20:40:24 +0100 Subject: [PATCH] fix(database): log errors for already applied migrations --- libs/shared/database/src/lib/connection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/shared/database/src/lib/connection.ts b/libs/shared/database/src/lib/connection.ts index d9354c4c4..a719fc962 100644 --- a/libs/shared/database/src/lib/connection.ts +++ b/libs/shared/database/src/lib/connection.ts @@ -185,8 +185,9 @@ function runMigrations(sqliteDb: Database.Database): void { try { sqliteDb.exec(stmt); } catch (error) { - // Ignore errors for migrations that may have already been applied + // Log and ignore errors for migrations that may have already been applied // (e.g., "duplicate column name" for ALTER TABLE ADD COLUMN) + console.debug('Migration already applied or failed:', error); } } }