"""added_wz_templates

Revision ID: 30ce75c6be57
Revises: b9230c0b3d78
Create Date: 2025-08-06 12:40:51.148347

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '30ce75c6be57'
down_revision = 'b9230c0b3d78'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_trans_action', sa.Column('wz_template_id', sa.String(length=64), nullable=True))
    op.add_column('cmf_trans_action', sa.Column('wz_template_target_id', sa.String(length=64), nullable=True))
    op.create_index(op.f('ix_cmf_trans_action_wz_template_id'), 'cmf_trans_action', ['wz_template_id'], unique=False)
    op.create_index(op.f('ix_cmf_trans_action_wz_template_target_id'), 'cmf_trans_action', ['wz_template_target_id'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_trans_action_wz_template_target_id'), table_name='cmf_trans_action')
    op.drop_index(op.f('ix_cmf_trans_action_wz_template_id'), table_name='cmf_trans_action')
    op.drop_column('cmf_trans_action', 'wz_template_target_id')
    op.drop_column('cmf_trans_action', 'wz_template_id')
    # ### end Alembic commands ###
