Yimaru-BackEnd/db/migrations/000083_scheduled_in_app_notifications.up.sql
2026-06-12 04:57:03 -07:00

8 lines
311 B
SQL

-- Allow in_app as a scheduled notification channel.
ALTER TABLE scheduled_notifications
DROP CONSTRAINT IF EXISTS scheduled_notifications_channel_check;
ALTER TABLE scheduled_notifications
ADD CONSTRAINT scheduled_notifications_channel_check
CHECK (channel IN ('email', 'sms', 'push', 'in_app'));