Files
spsays-bff/migrations/0029_add_chant_incomplete_reminder.up.sql

9 lines
443 B
SQL

-- Evening "incomplete chanting" reminder.
--
-- last_chant_incomplete_reminder_on: the UTC date the 9 PM (local)
-- "finish your rounds" reminder was last sent, so it goes out at most once
-- per day. Distinct from the morning chant reminder so a devotee can get a
-- gentle start-of-day nudge and, if their rounds are still unfinished, an
-- end-of-day one.
ALTER TABLE users ADD COLUMN IF NOT EXISTS last_chant_incomplete_reminder_on DATE;