- events路由更新: - 创建重复提醒时计算并保存next_reminder_date - 支持is_completed与repeat_type等字段合并更新 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
10 lines
396 B
SQL
10 lines
396 B
SQL
-- 迁移脚本:添加下一次提醒日期字段
|
||
-- 执行时间:2026-02-03
|
||
-- 说明:支持重复提醒的双时间机制(当前提醒时间 + 下一次提醒时间)
|
||
|
||
-- 添加 next_reminder_date 字段
|
||
ALTER TABLE events ADD COLUMN next_reminder_date TEXT DEFAULT NULL;
|
||
|
||
-- 验证迁移
|
||
-- SELECT id, title, date, repeat_type, next_reminder_date FROM events WHERE type = 'reminder';
|