"""unit

Revision ID: 0b6862894e0b
Revises: 224b4f7a908c
Create Date: 2021-02-03 12:39:41.714681

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '0b6862894e0b'
down_revision = '224b4f7a908c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_unit', sa.Column('short_name', sa.String(length=32), nullable=True))
    op.create_index(op.f('ix_cmf_unit_short_name'), 'cmf_unit', ['short_name'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_unit_short_name'), table_name='cmf_unit')
    op.drop_column('cmf_unit', 'short_name')
    # ### end Alembic commands ###
