lab5: очередь RabbitMQ, outbox, worker, варианты, fault-injection

This commit is contained in:
2026-11-09 17:34:10 +03:00
parent 276dbdad8a
commit 5f4b10ac2b
96 changed files with 10573 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS job_events;
DROP TABLE IF EXISTS outbox;
DROP TABLE IF EXISTS jobs;
DROP TABLE IF EXISTS attachment_variants;
ALTER TABLE attachments DROP COLUMN IF EXISTS staging_key;
ALTER TABLE attachments DROP COLUMN IF EXISTS pipeline_version;
ALTER TABLE attachments DROP COLUMN IF EXISTS error_code;
ALTER TABLE attachments DROP CONSTRAINT attachments_status_check;
ALTER TABLE attachments ADD CONSTRAINT attachments_status_check
CHECK (status IN ('uploading', 'ready', 'missing'));