"""Add stakeholder_type column to lead_requests."""


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