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

This commit is contained in:
Yuliiiaaaa
2026-11-24 13:22:27 +03:00
parent 276dbdad8a
commit 067ee4eb52
35 changed files with 1493 additions and 52 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);