"""person refactor

Revision ID: 9b57ade57ef3
Revises: 817f3578e456
Create Date: 2021-03-19 14:37:16.318972

"""
from alembic import op
import sqlalchemy as sa


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


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


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