feat(FN-2602): merge fusion/fn-2602 (auto-resolved)
- feat(FN-2602): complete Step 7 — add release changeset - test(FN-2602): complete Step 6 — align migration and schema tests - test(FN-2602): complete Step 5 — update store status assertions - feat(FN-2602): complete Step 4 — rename triage prompt labels - feat(FN-2602): complete Step 3 — add status rename migration - feat(FN-2602): complete Step 2 — rename respecify status literals - feat(FN-2602): complete Step 1 — rename triage display labels
This commit is contained in:
@@ -86,7 +86,7 @@ export function probeFts5(db: DatabaseSync): boolean {
|
||||
|
||||
// ── Schema Definition ────────────────────────────────────────────────
|
||||
|
||||
const SCHEMA_VERSION = 46;
|
||||
const SCHEMA_VERSION = 47;
|
||||
|
||||
function normalizeTaskComments(
|
||||
steeringComments: SteeringComment[] | undefined,
|
||||
@@ -1812,6 +1812,17 @@ export class Database {
|
||||
});
|
||||
}
|
||||
|
||||
// Status value rename (FN-2602)
|
||||
// Rename stored status strings: specifying→planning, needs-respecify→needs-replan
|
||||
if (version < 47) {
|
||||
this.applyMigration(47, () => {
|
||||
if (this.hasTable("tasks") && this.hasColumn("tasks", "status")) {
|
||||
this.db.exec("UPDATE tasks SET status = 'planning' WHERE status = 'specifying'");
|
||||
this.db.exec("UPDATE tasks SET status = 'needs-replan' WHERE status = 'needs-respecify'");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user