"""empty message

Revision ID: a03b51c5bbe9
Revises: 0f5c44e5e07f
Create Date: 2021-01-12 11:07:30.005135

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a03b51c5bbe9'
down_revision = '0f5c44e5e07f'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_card', sa.Column('place', sa.String(length=32), nullable=True))
    op.create_index(op.f('ix_cmf_card_place'), 'cmf_card', ['place'], unique=False)
    op.drop_index('ix_cmf_card_type', table_name='cmf_card')
    op.drop_column('cmf_card', 'type')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_card', sa.Column('type', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_card_type', 'cmf_card', ['type'], unique=False)
    op.drop_index(op.f('ix_cmf_card_place'), table_name='cmf_card')
    op.drop_column('cmf_card', 'place')
    # ### end Alembic commands ###
