fix(spans): expand knowledge span name column and truncate long wiki names

Wiki ingest builds postprocess.wiki.page[<slug>] subspan names that can exceed
varchar(64); widen the column to 255 and hash-suffix truncation so long slugs
still persist distinctly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wizardchen
2026-07-13 10:26:10 +08:00
committed by lyingbug
parent 083e9738f6
commit 26f8afa3db
7 changed files with 91 additions and 4 deletions
@@ -0,0 +1,6 @@
DO $$ BEGIN RAISE NOTICE '[Migration 000066] Expanding knowledge_processing_spans.name to VARCHAR(255)...'; END $$;
ALTER TABLE knowledge_processing_spans
ALTER COLUMN name TYPE VARCHAR(255);
DO $$ BEGIN RAISE NOTICE '[Migration 000066] knowledge_processing_spans.name expanded'; END $$;