"""add_transition_screen_ref

Revision ID: a22c36486265
Revises: ab73cbd37d18
Create Date: 2023-02-04 11:44:26.888684

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a22c36486265'
down_revision = 'ab73cbd37d18'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_trans', sa.Column('cmf_ui_form_id', sa.String(length=64), nullable=True))
    op.create_index(op.f('ix_cmf_trans_cmf_ui_form_id'), 'cmf_trans', ['cmf_ui_form_id'], unique=False)
    op.create_foreign_key(None, 'cmf_trans', 'cmf_ui_form', ['cmf_ui_form_id'], ['id'])
    op.drop_column('cmf_trans', 'trans_display_form')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_trans', sa.Column('trans_display_form', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
    op.drop_constraint(None, 'cmf_trans', type_='foreignkey')
    op.drop_index(op.f('ix_cmf_trans_cmf_ui_form_id'), table_name='cmf_trans')
    op.drop_column('cmf_trans', 'cmf_ui_form_id')
    # ### end Alembic commands ###
