ЛР4 - БВТ2302 - Никитина - на 5

This commit is contained in:
Yuliiiaaaa
2026-11-10 13:12:50 +03:00
parent ec540a1a72
commit ae2bd700b5
26 changed files with 1332 additions and 42 deletions
+3
View File
@@ -0,0 +1,3 @@
ALTER TABLE messages DROP CONSTRAINT IF EXISTS messages_text_check;
ALTER TABLE messages ADD CONSTRAINT messages_text_check
CHECK (char_length(text) BETWEEN 1 AND 4000 OR cardinality(attachment_ids) > 0);