"""create virtual_card_purchases card

Revision ID: 95f27e35297d
Revises: ddb964a11147
Create Date: 2025-11-15 12:39:06.411884

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '95f27e35297d'
down_revision: Union[str, None] = 'ddb964a11147'
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('cards', sa.Column('card_type', sa.String(length=20), nullable=False))
    op.drop_column('virtual_cards', 'card_type')
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('virtual_cards', sa.Column('card_type', sa.VARCHAR(length=20), autoincrement=False, nullable=False))
    op.drop_column('cards', 'card_type')
    # ### end Alembic commands ###
