reminder-bot/migrations/20230903131153_reminder_status_timing.sql

5 lines
203 B
MySQL
Raw Normal View History

ALTER TABLE reminders ADD COLUMN `status_change_time` DATETIME;
-- This is a best-guess as to the status change time.
2023-09-23 14:16:45 +00:00
UPDATE reminders SET `status_change_time` = `utc_time` WHERE `status` != 'pending';