Allow granular per-chat reminder configuration

This commit is contained in:
2024-02-11 10:30:20 +01:00
parent d338f89a15
commit 454bcf5307
10 changed files with 359 additions and 108 deletions

View File

@@ -0,0 +1,7 @@
DELETE FROM reminders WHERE reminder_time == NULL;
ALTER TABLE reminders DROP reminder_time;
ALTER TABLE reminders RENAME reminder_delta_hours TO days_ahead;
-- Convert days_ahead from hours to days
UPDATE reminders SET days_ahead = days_ahead / 24;

View File

@@ -0,0 +1,7 @@
ALTER TABLE reminders RENAME days_ahead TO reminder_delta_hours;
ALTER TABLE reminders ADD reminder_time TEXT;
-- Convert reminder_delta_hours from days to hours
UPDATE reminders SET reminder_delta_hours = reminder_delta_hours * 24;
UPDATE reminders SET reminder_time='10:00';