RezinaLMS-BackEnd/db/migrations/000107_scheduled_notifications_created_by_team_member.down.sql
Yared Yemane 880bdfb4b7 Fix scheduled notification creator FK and default app timezone to EAT.
Point scheduled_notifications.created_by at team_members so admin JWT IDs validate, and set TZ=Africa/Addis_Ababa for the Docker app service.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 18:52:09 +03:00

7 lines
254 B
SQL

ALTER TABLE scheduled_notifications
DROP CONSTRAINT IF EXISTS scheduled_notifications_created_by_fkey;
ALTER TABLE scheduled_notifications
ADD CONSTRAINT scheduled_notifications_created_by_fkey
FOREIGN KEY (created_by) REFERENCES users(id);