Added validation for location as well

This commit is contained in:
Alexis
2024-11-24 20:08:30 +01:00
parent c7069164b0
commit 372c7a49e1
5 changed files with 19 additions and 8 deletions

View File

@@ -93,7 +93,8 @@ alter table public.calendar_events
add constraint calendar_events_maxlen_check
check (
char_length(title) <= 240 AND
(description IS NULL OR char_length(description) <= 1200)
(description IS NULL OR char_length(description) <= 1200) AND
(location IS NULL OR char_length(location) <= 240)
);
-- Link table for events - categories