"""Add metadata column to supplier_boosts for card_color boost config."""


def up(conn):
    cols = {r[1] for r in conn.execute("PRAGMA table_info(supplier_boosts)").fetchall()}
    if "metadata" not in cols:
        conn.execute("ALTER TABLE supplier_boosts ADD COLUMN metadata TEXT")
