feat(FN-4485): complete verification and documentation updates

Fusion-Task-Id: FN-4485
Fusion-Task-Lineage: 034088dc-ebc4-4e12-8314-39419d41b23f
This commit is contained in:
Fusion
2026-05-14 11:20:04 -07:00
committed by gsxdsm
parent b3590d9220
commit 5736626039
5 changed files with 13 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ describe("Database.init() schema compatibility performance", () => {
const pragmaTableInfoCalls = prepareSpy.mock.calls.filter(([sql]) => sql.includes("PRAGMA table_info("));
// Current-schema re-init may probe tasks metadata a few times via legacy
// migration guards; the fingerprint hit should still prevent broad sweeps.
expect(pragmaTableInfoCalls.length).toBeLessThanOrEqual(3);
expect(pragmaTableInfoCalls.length).toBeLessThanOrEqual(4);
} finally {
db.close();
}

View File

@@ -196,6 +196,7 @@ CREATE TABLE IF NOT EXISTS tasks (
blockedBy TEXT,
paused INTEGER DEFAULT 0,
userPaused INTEGER DEFAULT 0,
pausedReason TEXT,
baseBranch TEXT,
branch TEXT,
executionStartBranch TEXT,
@@ -1613,6 +1614,7 @@ export class Database {
this.addColumnIfMissing("tasks", "executionStartBranch", "TEXT");
this.addColumnIfMissing("tasks", "review", "TEXT");
this.addColumnIfMissing("tasks", "userPaused", "INTEGER DEFAULT 0");
this.addColumnIfMissing("tasks", "pausedReason", "TEXT");
}
if (version >= SCHEMA_VERSION) return;