Files
hotelsync/backend/migrations/076_chat_group_rooms.sql

5 lines
267 B
SQL

-- Allow 'group' room type (drop old check constraint, add new one)
ALTER TABLE chat_rooms DROP CONSTRAINT IF EXISTS chat_rooms_type_check;
ALTER TABLE chat_rooms ADD CONSTRAINT chat_rooms_type_check
CHECK (type IN ('general', 'direct', 'notifications', 'group'));