merge_requires_approval (initiatives) and requires_approval (tasks) were removed from schema.ts in the task-approval removal but left in the DB because 0030 assumed SQLite couldn't DROP COLUMN. SQLite 3.35+ supports it. These orphaned columns caused the old stale-build approval code path to silently set detail tasks to pending_approval, stranding them and blocking phase completion.
6 lines
353 B
SQL
6 lines
353 B
SQL
-- Drop orphaned approval columns left behind by 0030_remove_task_approval.
|
|
-- These columns were removed from schema.ts but left in the DB because
|
|
-- 0030 assumed SQLite couldn't DROP COLUMN. SQLite 3.35+ supports it.
|
|
ALTER TABLE initiatives DROP COLUMN merge_requires_approval;--> statement-breakpoint
|
|
ALTER TABLE tasks DROP COLUMN requires_approval;
|