Files
Codewalkers/apps/server/drizzle/0030_remove_task_approval.sql
Lukas May 8804455c77 Remove task-level approval system
Task-level approval (requiresApproval, mergeRequiresApproval,
pending_approval status) was redundant with executionMode
(yolo vs review_per_phase) and blocked the orchestrator's
phase completion flow. Tasks now complete directly;
phase-level review via executionMode is the right granularity.

Removed: schema columns (left in DB, removed from Drizzle),
TaskPendingApprovalEvent, approveTask/listPendingApprovals
procedures, findPendingApproval repository method, and all
frontend approval UI.
2026-03-05 17:09:48 +01:00

7 lines
369 B
SQL

-- Migrate any pending_approval tasks to completed (unblock the pipeline)
UPDATE tasks SET status = 'completed' WHERE status = 'pending_approval';
-- Note: SQLite cannot drop columns. The merge_requires_approval column on
-- initiatives and requires_approval column on tasks are left in the DB but
-- removed from the Drizzle schema. Drizzle ignores extra DB columns.