mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-06-04 13:30:32 +08:00
- Introduced a new migration (000054) to create the knowledge_processing_spans table, which captures detailed progress of document parsing stages. - The table includes fields for span hierarchy, status tracking, and metadata to enhance visibility into the parsing pipeline. - Added indexes to optimize queries related to knowledge_id, attempt, and span relationships. - Implemented rollback migration to safely drop the table and associated indexes if needed.
10 lines
429 B
SQL
10 lines
429 B
SQL
-- 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 $$;
|