From ee8137bc9431c8a57fab4e38a53f71963ec30c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krzeslak?= Date: Wed, 5 Aug 2026 01:08:46 +0200 Subject: [PATCH] test: make check for status column case-insensitive --- src/db/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/db.ts b/src/db/db.ts index 1cc7016..a99302c 100644 --- a/src/db/db.ts +++ b/src/db/db.ts @@ -36,7 +36,7 @@ export function initializeDatabase(db: Database): void { // missing before altering. This makes the migration safe to re-run // even against a file left in an inconsistent state. const columns = db.query("PRAGMA table_info(file_names)").all() as { name: string }[]; - const hasStatusColumn = columns.some((c) => c.name === "status"); + const hasStatusColumn = columns.some((c) => c.name.toLowerCase() === "status"); if (!hasStatusColumn) { db.exec("ALTER TABLE file_names ADD COLUMN status TEXT DEFAULT 'not started';");