Выполнить лабораторную 7 по безопасности мессенджера

This commit is contained in:
2026-12-04 23:51:24 +03:00
parent 20afc2c790
commit 65bbf3224a
86 changed files with 6376 additions and 144 deletions
+10
View File
@@ -0,0 +1,10 @@
ALTER TABLE job_outbox ADD COLUMN traceparent text;
ALTER TABLE job_outbox ADD COLUMN tracestate text;
CREATE INDEX attachments_pending_created ON attachments(created_at)
WHERE status IN ('queued', 'processing');
-- Only uploads accepted under this migration belong to the ready SLO.
ALTER TABLE attachments ADD COLUMN slo_accepted_at timestamptz;
ALTER TABLE attachments ADD COLUMN slo_first_ready_at timestamptz;
CREATE INDEX attachments_slo_acceptance ON attachments(slo_accepted_at)
INCLUDE (slo_first_ready_at) WHERE slo_accepted_at IS NOT NULL;