"""Migration: add ai_matches JSONB column to ultra_descriptions."""
from common.pool_wrapper import get_pooled_connection_compat

conn = get_pooled_connection_compat()
cur = conn.cursor()
cur.execute("""
    ALTER TABLE dashboard_canifa.ultra_descriptions
    ADD COLUMN IF NOT EXISTS ai_matches JSONB DEFAULT '{}'::jsonb;
""")
conn.commit()
cur.close()
conn.close()
print("OK: ai_matches column added to ultra_descriptions")
