"""add name to tickers

Company name (e.g. "Biogen Inc."), backfilled from Alpaca so the UI can show which
company is behind a symbol. Nullable — symbols Alpaca doesn't cover stay name-less.

Revision ID: 014
Revises: 013
Create Date: 2026-07-01 00:00:00.000000

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = "014"
down_revision: Union[str, None] = "013"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column("tickers", sa.Column("name", sa.String(length=120), nullable=True))


def downgrade() -> None:
    op.drop_column("tickers", "name")
