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
+1 -1
View File
@@ -86,7 +86,7 @@ type KnowledgeProcessingSpan struct {
Attempt int `gorm:"column:attempt" json:"attempt"`
SpanID string `gorm:"column:span_id;size:64" json:"span_id"`
ParentSpanID string `gorm:"column:parent_span_id;size:64" json:"parent_span_id,omitempty"`
Name string `gorm:"column:name;size:64" json:"name"`
Name string `gorm:"column:name;size:255" json:"name"`
Kind string `gorm:"column:kind;size:16" json:"kind"`
Status string `gorm:"column:status;size:16" json:"status"`
Input JSONMap `gorm:"column:input;type:jsonb" json:"input,omitempty"`