"""new permisions acl field fix

Revision ID: f0edb15d90b7
Revises: c74984e9ee6d
Create Date: 2022-06-27 18:55:37.441460

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'f0edb15d90b7'
down_revision = 'c74984e9ee6d'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_acl', sa.Column('object_id', sa.String(length=64), nullable=False))
    op.add_column('cmf_acl', sa.Column('object_field', sa.String(length=64), nullable=False))
    op.drop_column('cmf_acl', 'object')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_acl', sa.Column('object', sa.VARCHAR(length=64), autoincrement=False, nullable=False))
    op.drop_column('cmf_acl', 'object_field')
    op.drop_column('cmf_acl', 'object_id')
    # ### end Alembic commands ###
