From 073289441419dde10e02f67f911a029895cc361a Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 1 May 2026 04:27:19 +0000 Subject: [PATCH] fix: widen horizon/mode columns in prediction_snapshots to VARCHAR(50) time_horizon values like 'position_30d_90d (proj:30d)' exceed VARCHAR(20) --- infra/migrations/035_model_validation.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/migrations/035_model_validation.sql b/infra/migrations/035_model_validation.sql index 0e566e5..1f0e2fb 100644 --- a/infra/migrations/035_model_validation.sql +++ b/infra/migrations/035_model_validation.sql @@ -11,10 +11,10 @@ CREATE TABLE IF NOT EXISTS prediction_snapshots ( generated_at TIMESTAMPTZ NOT NULL, ticker VARCHAR(20) NOT NULL, "window" VARCHAR(20) NOT NULL, - horizon VARCHAR(20) NOT NULL, + horizon VARCHAR(50) NOT NULL, direction VARCHAR(20) NOT NULL, action VARCHAR(20) NOT NULL, - mode VARCHAR(30) NOT NULL, + mode VARCHAR(50) NOT NULL, strength FLOAT NOT NULL, confidence FLOAT NOT NULL, contradiction FLOAT NOT NULL DEFAULT 0.0,