feat(migrations): add knowledge_processing_spans table and rollback script

This commit introduces the `knowledge_processing_spans` table to track the progress of document parsing stages, enabling better visibility and error handling in the frontend. The schema includes fields for span details, status, and timestamps, along with necessary indexes for efficient querying. A rollback script is also provided to drop the table and its associated indexes if needed.
This commit is contained in:
wizardchen
2026-05-27 23:28:57 +08:00
committed by lyingbug
parent 2a4d6f9019
commit df3b72c0fe
2 changed files with 0 additions and 0 deletions
@@ -0,0 +1,9 @@
-- Migration: 000054_knowledge_processing_spans (rollback)
DO $$ BEGIN RAISE NOTICE '[Migration 000054 rollback] Dropping table: knowledge_processing_spans'; END $$;
DROP INDEX IF EXISTS idx_kpspan_parent;
DROP INDEX IF EXISTS idx_kpspan_status_started;
DROP INDEX IF EXISTS idx_kpspan_knowledge_attempt;
DROP TABLE IF EXISTS knowledge_processing_spans;
DO $$ BEGIN RAISE NOTICE '[Migration 000054 rollback] complete'; END $$;