From 729e29cc92eea450eab082ea4f610677d56f7c37 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sat, 18 Jul 2026 04:51:17 +0000 Subject: [PATCH] a2a-source-edit: write db/migrations/002_quotejudge_current_columns.sql --- db/migrations/002_quotejudge_current_columns.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrations/002_quotejudge_current_columns.sql diff --git a/db/migrations/002_quotejudge_current_columns.sql b/db/migrations/002_quotejudge_current_columns.sql new file mode 100644 index 0000000..04eccb8 --- /dev/null +++ b/db/migrations/002_quotejudge_current_columns.sql @@ -0,0 +1,10 @@ +-- Ensure all columns used by the current QuoteJudge runtime exist before +-- legacy bridge migrations reference them. Additive and safe for existing DBs. +ALTER TABLE quote_comparisons + ADD COLUMN IF NOT EXISTS recommendation_vendor TEXT, + ADD COLUMN IF NOT EXISTS recommended_vendor TEXT, + ADD COLUMN IF NOT EXISTS result JSONB, + ADD COLUMN IF NOT EXISTS payload JSONB, + ADD COLUMN IF NOT EXISTS weighted_score NUMERIC(10,4), + ADD COLUMN IF NOT EXISTS score DOUBLE PRECISION, + ADD COLUMN IF NOT EXISTS normalized_total DOUBLE PRECISION;