"""document history reason

Revision ID: 82a18346528a
Revises: d10f751b5cb9
Create Date: 2022-04-05 08:31:16.113224

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '82a18346528a'
down_revision = 'd10f751b5cb9'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_document_history', sa.Column('reason', sa.String(), nullable=True))
    op.drop_column('cmf_document_history', 'diff_explain')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_document_history', sa.Column('diff_explain', sa.VARCHAR(), autoincrement=False, nullable=True))
    op.drop_column('cmf_document_history', 'reason')
    # ### end Alembic commands ###
