Files
buzz/migrations/0034_workflow_run_definition_event_id.sql
Logan Johnson e8ec3c8b4d wip(workflows): bind runs to signed revisions
Checkpoint run-level revision persistence before wiring every execution and resume path.

Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>

Signed-off-by: loganj <loganj@squareup.com>
2026-08-24 20:35:47 -04:00

6 lines
306 B
SQL

-- Bind each new workflow run to the exact signed definition it executes.
-- Existing rows remain NULL and all resume/execution paths fail them closed.
ALTER TABLE workflow_runs
ADD COLUMN definition_event_id BYTEA
CHECK (definition_event_id IS NULL OR octet_length(definition_event_id) = 32);