Complete lab 7 security infrastructure

This commit is contained in:
Yuliiiaaaa
2026-11-30 21:23:07 +03:00
parent 20afc2c790
commit c00d245263
55 changed files with 3515 additions and 28 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);