4 lines
226 B
SQL
4 lines
226 B
SQL
-- Empty text is valid only when the API supplies at least one attachment.
|
|
ALTER TABLE messages DROP CONSTRAINT messages_text_check;
|
|
ALTER TABLE messages ADD CONSTRAINT messages_text_check CHECK (octet_length(text) <= 16000);
|