"""Add cover_image column to suppliers table."""


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