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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user