forked from mtusi2026/mtusi2026lab4
ЛР4: S3-вложения, приватный bucket и согласованность хранилищ (трек 2)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- Lab4 contract: a message may carry text = "" when it references at least one
|
||||
-- attachment of the chat (contracts/README.md, "Вложения"). The HTTP handler
|
||||
-- still rejects empty or blank text without attachments; the database
|
||||
-- constraint only widens to permit the documented attachment-only message.
|
||||
ALTER TABLE messages
|
||||
DROP CONSTRAINT messages_text_length;
|
||||
|
||||
ALTER TABLE messages
|
||||
ADD CONSTRAINT messages_text_length
|
||||
CHECK (char_length(text) BETWEEN 0 AND 4000);
|
||||
Reference in New Issue
Block a user