WebHooker/migrations
RhenCloud 25ebae4ae5
feat(storage): migrate config, dedup and delivery state to D1
- Move oversized queue payloads from KV to R2 (PAYLOAD binding, webhooks/YYYY/MM/DD/*.json, KV queue:payload:* fallback)
- Persist routes/groups to D1 (d1_routes/d1_groups) with memory -> KV -> D1 three-tier cache, seeded from legacy KV config keys
- Move webhook dedup (dedup_keys), delivery state (delivery_state) and message tracking (message_tracking) to D1 via canUseD1 probe with automatic KV fallback
- Batch send_logs inserts (recordSendBatch) and add group_id/ts index
- Add storage-prune scheduled task for expired dedup/state/tracking rows
- Add TTL to invite:group:{id} index and audit all ephemeral KV keys
- Add D1 indexes for the new tables
- Sync AGENTS.md, README.md/zh and docs/ (en/zh) with the new storage layout
2026-08-17 15:01:20 +08:00
..
0001_init.sql feat: migrate send logs and discord links to D1 2026-08-03 05:18:58 +08:00
0002_log_detail.sql feat(admin): add detailed send log viewer with extended fields 2026-08-03 05:19:02 +08:00
0003_telegram_links.sql feat: add Telegram push support with multi-target routes 2026-08-03 05:19:05 +08:00
0004_add_group_id.sql fix: allow duplicate route IDs across groups and add group_id to send_logs 2026-08-08 23:00:15 +08:00
0005_audit_logs.sql feat(admin): role-based group members (owner/admin/viewer), invites and audit log 2026-08-11 23:37:19 +08:00
0006_config_d1.sql feat(storage): migrate config, dedup and delivery state to D1 2026-08-17 15:01:20 +08:00
0007_send_logs_index.sql feat(storage): migrate config, dedup and delivery state to D1 2026-08-17 15:01:20 +08:00
0008_storage_d1.sql feat(storage): migrate config, dedup and delivery state to D1 2026-08-17 15:01:20 +08:00