Files
buzz/migrations/0033_workflow_definition_event_id.sql
Logan Johnson 08020bebca feat(workflows): bind owner triggers to exact signed revisions
Reconcile the complete Node A observable behavior onto current main without carrying its historical merge topology.

Co-authored-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <loganj@squareup.com>
2026-08-26 16:33:10 -04:00

7 lines
377 B
SQL

-- Bind each materialized workflow row to the exact owner-signed kind:30620
-- revision that produced it. Existing rows remain nullable until re-saved;
-- revision-bound execution fails closed when the revision is unavailable.
ALTER TABLE workflows
ADD COLUMN definition_event_id BYTEA
CHECK (definition_event_id IS NULL OR octet_length(definition_event_id) = 32);