Files
mtusi2026lab4/migrations/000003_attachments.down.sql
T
2026-11-05 13:52:11 +03:00

4 lines
199 B
SQL

DROP TABLE message_attachments;
DROP TABLE attachments;
ALTER TABLE messages DROP CONSTRAINT text_length;
ALTER TABLE messages ADD CONSTRAINT text_length CHECK (char_length(text) BETWEEN 1 AND 4000);