summaryrefslogblamecommitdiff
path: root/makima/migrations/20250120000000_add_phase_guard.sql
blob: dfa642a3a3e88d35a84adafc68d17772ef06dc1c (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                        
-- Add phase_guard column to contracts table
-- When enabled, the supervisor will wait for user confirmation before progressing to the next phase.
-- This allows users to review and potentially amend phase outputs (plans, requirements, etc.)
-- before the contract continues to the next phase.

ALTER TABLE contracts
ADD COLUMN IF NOT EXISTS phase_guard BOOLEAN NOT NULL DEFAULT FALSE;

COMMENT ON COLUMN contracts.phase_guard IS 'Whether to wait for user confirmation before progressing to the next phase';