"""add next_earnings_date to fundamental_data

Revision ID: 006
Revises: 005
Create Date: 2026-06-15 00:00:00.000000

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


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


def upgrade() -> None:
    op.add_column(
        "fundamental_data",
        sa.Column("next_earnings_date", sa.Date(), nullable=True),
    )


def downgrade() -> None:
    op.drop_column("fundamental_data", "next_earnings_date")
