"""Audit fields

Revision ID: 158d67ee5de8
Revises: 2b939b6662d9
Create Date: 2023-01-17 15:31:46.066117

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '158d67ee5de8'
down_revision = '2b939b6662d9'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_audit', sa.Column('result_status', sa.String(length=32), nullable=False, server_default='ok'))
    op.add_column('cmf_audit', sa.Column('client_ip', sa.String(length=32), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_audit', 'client_ip')
    op.drop_column('cmf_audit', 'result_status')
    # ### end Alembic commands ###
