-- Preserve the upload span context across the durable outbox and every retry. -- Version 007 is reserved for the lab5 replay/audit migration. ALTER TABLE attachment_jobs ADD COLUMN traceparent text CHECK (traceparent IS NULL OR traceparent ~ '^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$'), ADD COLUMN tracestate text CHECK (tracestate IS NULL OR length(tracestate) <= 512);