Реализовать lab5 на оценку 4: async attachments, outbox, worker и variants.

This commit is contained in:
Mikhail Verkovykh
2026-11-19 20:47:08 +03:00
parent 276dbdad8a
commit 92c67c23c0
86 changed files with 10148 additions and 30 deletions
+8
View File
@@ -0,0 +1,8 @@
-- Lab4: message text may contain U+0000, which PostgreSQL TEXT/JSONB cannot store.
-- Text is kept as exact UTF-8 bytes; the idempotent response snapshot as JSON
-- (textual JSON keeps the "\u0000" escape, JSONB rejects it).
ALTER TABLE messages
ALTER COLUMN text TYPE BYTEA USING convert_to(text, 'UTF8');
ALTER TABLE idempotency_records
ALTER COLUMN response_body TYPE JSON USING response_body::json;