"""auth

Revision ID: 817f3578e456
Revises: 69266828e6fc
Create Date: 2021-03-19 12:30:28.427076

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '817f3578e456'
down_revision = '69266828e6fc'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('ix_cmf_auth_cmf_author_id', table_name='cmf_auth')
    op.drop_index('ix_cmf_auth_cmf_locked_by_id', table_name='cmf_auth')
    op.drop_index('ix_cmf_auth_cmf_modified_by_id', table_name='cmf_auth')
    op.drop_index('ix_cmf_auth_cmf_owner_id', table_name='cmf_auth')
    op.drop_column('cmf_auth', 'cmf_author_id')
    op.drop_column('cmf_auth', 'cmf_locked_by_id')
    op.drop_column('cmf_auth', 'cmf_owner_id')
    op.drop_column('cmf_auth', 'cmf_modified_by_id')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_auth', sa.Column('cmf_modified_by_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.add_column('cmf_auth', sa.Column('cmf_owner_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.add_column('cmf_auth', sa.Column('cmf_locked_by_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.add_column('cmf_auth', sa.Column('cmf_author_id', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.create_index('ix_cmf_auth_cmf_owner_id', 'cmf_auth', ['cmf_owner_id'], unique=False)
    op.create_index('ix_cmf_auth_cmf_modified_by_id', 'cmf_auth', ['cmf_modified_by_id'], unique=False)
    op.create_index('ix_cmf_auth_cmf_locked_by_id', 'cmf_auth', ['cmf_locked_by_id'], unique=False)
    op.create_index('ix_cmf_auth_cmf_author_id', 'cmf_auth', ['cmf_author_id'], unique=False)
    # ### end Alembic commands ###
