feat: search approval history by content and date

This commit is contained in:
ji ruo committed 2026-10-12 12:38:31 +08:00
1 parent e33eedeb17
commit 2f2b78cc78
9 files changed
+255 -11

No files matched your search

+1
View File
@@ -1112,6 +1112,7 @@ CREATE TABLE IF NOT EXISTS intercept_pending (
);
CREATE INDEX IF NOT EXISTS idx_intercept_pending_status ON intercept_pending(status, created_at DESC);
CREATE INDEX IF NOT EXISTS idx_intercept_pending_task ON intercept_pending(task_id, created_at DESC);
CREATE INDEX IF NOT EXISTS idx_intercept_pending_created ON intercept_pending(created_at DESC);
-- 补旧库:reason 列(已发版,加列要带 IF NOT EXISTS)。
ALTER TABLE intercept_pending ADD COLUMN IF NOT EXISTS reason TEXT NOT NULL DEFAULT '';
-- Detail payloads are lazy-loaded; NULL preserves the meaning of legacy history.