fix(db): widen ai_sessions.status column from varchar(20) to varchar(30)

'requesting_escalation' is 23 characters, exceeding the varchar(20)
limit. This caused a StringDataRightTruncationError 500 on escalate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 01:23:33 +00:00
parent 60334cde93
commit 0a77215fac
2 changed files with 37 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ class AISession(Base):
# ── Session state ──
status: Mapped[str] = mapped_column(
String(20), nullable=False, default="active", index=True,
String(30), nullable=False, default="active", index=True,
)
confidence_tier: Mapped[str] = mapped_column(
String(20), nullable=False, default="discovery",