df3b72c0fe
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.
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 $$;
|