"""tcg product update again

Revision ID: 1746d35187a2
Revises: 9775314e337b
Create Date: 2025-04-17 22:02:35.492726

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '1746d35187a2'
down_revision: Union[str, None] = '9775314e337b'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('tcgplayer_products', sa.Column('ext_subtype', sa.String(), nullable=True))
    op.add_column('tcgplayer_products', sa.Column('ext_oracle_text', sa.String(), nullable=True))
    op.add_column('tcgplayer_products', sa.Column('ext_flavor_text', sa.String(), nullable=True))
    op.drop_column('tcgplayer_products', 'ext_mana_cost')
    op.drop_column('tcgplayer_products', 'ext_loyalty')
    op.drop_column('tcgplayer_products', 'ext_mana_value')
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('tcgplayer_products', sa.Column('ext_mana_value', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.add_column('tcgplayer_products', sa.Column('ext_loyalty', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.add_column('tcgplayer_products', sa.Column('ext_mana_cost', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.drop_column('tcgplayer_products', 'ext_flavor_text')
    op.drop_column('tcgplayer_products', 'ext_oracle_text')
    op.drop_column('tcgplayer_products', 'ext_subtype')
    # ### end Alembic commands ###
