Change migration

This commit is contained in:
jude
2023-09-23 15:16:45 +01:00
parent 6f1ef206df
commit 4bc7ae8e23
2 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
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`;
UPDATE reminders SET `status_change_time` = `utc_time` WHERE `status` != 'pending';