feat(db): allow blocked_pending_governance task run status
Pre-activation 202 runs must persist without hitting chk_task_run_status. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
-- +goose Up
|
||||
-- Pre-activation document runs stay 202 but persist blocked_pending_governance
|
||||
-- without starting a squad or taking a lease.
|
||||
|
||||
ALTER TABLE task_runs DROP CONSTRAINT IF EXISTS chk_task_run_status;
|
||||
|
||||
ALTER TABLE task_runs ADD CONSTRAINT chk_task_run_status CHECK (
|
||||
status IN (
|
||||
'pending',
|
||||
'running',
|
||||
'completed',
|
||||
'failed',
|
||||
'cancelled',
|
||||
'finalizing_failed',
|
||||
'quality_failed',
|
||||
'interrupted',
|
||||
'pending_author_confirmation',
|
||||
'blocked_pending_governance'
|
||||
)
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE task_runs DROP CONSTRAINT IF EXISTS chk_task_run_status;
|
||||
|
||||
ALTER TABLE task_runs ADD CONSTRAINT chk_task_run_status CHECK (
|
||||
status IN (
|
||||
'pending',
|
||||
'running',
|
||||
'completed',
|
||||
'failed',
|
||||
'cancelled',
|
||||
'finalizing_failed',
|
||||
'quality_failed',
|
||||
'interrupted',
|
||||
'pending_author_confirmation'
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user