qia-server/src/migrations/002_add_next_reminder_date.sql
ddshi 60fdd4ec2b feat: 支持重复提醒创建和移除设置API
- events路由更新:
  - 创建重复提醒时计算并保存next_reminder_date
  - 支持is_completed与repeat_type等字段合并更新

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 13:51:14 +08:00

10 lines
396 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 迁移脚本:添加下一次提醒日期字段
-- 执行时间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';