feat(FN-4398): complete Step 1 — add retry counter schema columns

Fusion-Task-Id: FN-4398
Fusion-Task-Lineage: 8b898b2e-3468-4fa7-8546-b8f6ba52cf46
This commit is contained in:
Fusion
2026-05-14 14:43:24 -07:00
committed by gsxdsm
parent 990fea9f02
commit 72f921a486
9 changed files with 127 additions and 33 deletions

View File

@@ -119,7 +119,7 @@ export function probeFts5(db: DatabaseSync): boolean {
// ── Schema Definition ────────────────────────────────────────────────
const SCHEMA_VERSION = 77;
const SCHEMA_VERSION = 78;
function normalizeTaskComments(
steeringComments: SteeringComment[] | undefined,
@@ -3276,6 +3276,14 @@ export class Database {
});
}
if (version < 78) {
this.applyMigration(78, () => {
this.addColumnIfMissing("tasks", "branchConflictRecoveryCount", "INTEGER DEFAULT 0");
this.addColumnIfMissing("tasks", "reviewerContextRetryCount", "INTEGER DEFAULT 0");
this.addColumnIfMissing("tasks", "reviewerFallbackRetryCount", "INTEGER DEFAULT 0");
});
}
}
/**