reminder-bot/migrations/20230903131153_reminder_status_timing.sql
2023-09-23 15:16:45 +01:00

5 lines
203 B
SQL

ALTER TABLE reminders ADD COLUMN `status_change_time` DATETIME;
-- This is a best-guess as to the status change time.
UPDATE reminders SET `status_change_time` = `utc_time` WHERE `status` != 'pending';