Files
mtusi2026lab7/migrations/005_replay_audit.sql
T
killoq 550c2e76ee
Skeleton contracts / contracts (pull_request) Blocked by required conditions
lab7
2026-12-06 15:56:06 +03:00

9 lines
313 B
SQL

CREATE TABLE IF NOT EXISTS attachment_replay_audit (
id BIGSERIAL PRIMARY KEY,
attachment_id UUID NOT NULL REFERENCES attachments (id) ON DELETE CASCADE,
old_pipeline_version INTEGER NOT NULL,
new_pipeline_version INTEGER NOT NULL,
reason TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL
);