forked from mtusi2026/mtusi2026lab6
Implement lab6 OpenTelemetry observability stack
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
-- Lab4: messages with attachments may have empty text.
|
||||
-- The API checks that a message contains text or attachments.
|
||||
|
||||
ALTER TABLE messages
|
||||
DROP CONSTRAINT IF EXISTS message_length;
|
||||
|
||||
ALTER TABLE messages
|
||||
DROP CONSTRAINT IF EXISTS message_not_blank;
|
||||
|
||||
ALTER TABLE messages
|
||||
ADD CONSTRAINT message_length
|
||||
CHECK (char_length(text) <= 4000);
|
||||
Reference in New Issue
Block a user