From 2eb29f830de172838d8b2988767b8861f1281809 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 28 Apr 2026 00:04:51 -0700 Subject: [PATCH] fix(core): bump SCHEMA_VERSION to 49 so the nodeId task-column migration runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Migration 49 (`ALTER TABLE tasks ADD COLUMN nodeId TEXT`) was added with SCHEMA_VERSION still pinned to 48. Existing DBs at version 48 hit the `if (version >= SCHEMA_VERSION) return;` early exit, so the column was never created — `TaskStore.listTasks` then crashed at startup with `no such column: nodeId` and the dashboard exited before initialization. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/core/src/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/db.ts b/packages/core/src/db.ts index ac6a4646f..ea0d683c6 100644 --- a/packages/core/src/db.ts +++ b/packages/core/src/db.ts @@ -86,7 +86,7 @@ export function probeFts5(db: DatabaseSync): boolean { // ── Schema Definition ──────────────────────────────────────────────── -const SCHEMA_VERSION = 48; +const SCHEMA_VERSION = 49; function normalizeTaskComments( steeringComments: SteeringComment[] | undefined,