Files
Enterprise-Knowledge-Base/migrations/versioned/000066_expand_knowledge_span_name.down.sql
T
wizardchen 26f8afa3db 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>
2026-07-13 10:35:44 +08:00

7 lines
323 B
SQL

DO $$ BEGIN RAISE NOTICE '[Migration 000066 down] Reverting knowledge_processing_spans.name to VARCHAR(64)...'; END $$;
ALTER TABLE knowledge_processing_spans
ALTER COLUMN name TYPE VARCHAR(64) USING LEFT(name, 64);
DO $$ BEGIN RAISE NOTICE '[Migration 000066 down] knowledge_processing_spans.name reverted'; END $$;