"""create virtual_card_purchases card

Revision ID: 8b25fd901904
Revises: 1c80fb7d6b0a
Create Date: 2025-11-15 13:09:03.163722

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '8b25fd901904'
down_revision: Union[str, None] = '1c80fb7d6b0a'
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.drop_index('ix_cards_virtual_uid', table_name='cards_virtual')
    op.drop_column('cards_virtual', 'uid')
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cards_virtual', sa.Column('uid', sa.VARCHAR(length=50), autoincrement=False, nullable=False))
    op.create_index('ix_cards_virtual_uid', 'cards_virtual', ['uid'], unique=True)
    # ### end Alembic commands ###
