"""add_date_to_portfolio_history

Revision ID: e6b8c95d8243
Revises: 3b8550297e8e
Create Date: 2025-05-31 18:52:23.021149

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'e6b8c95d8243'
down_revision: Union[str, None] = '3b8550297e8e'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('portfolio_history', sa.Column('date', sa.DateTime(), nullable=False))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('portfolio_history', 'date')
    # ### end Alembic commands ###
