"""Add category to RuleSql table

Revision ID: 42e11ab5cea3
Revises: e24af362f06a
Create Date: 2020-02-07 09:06:34.331478

"""

# revision identifiers, used by Alembic.
revision = '42e11ab5cea3'
down_revision = '244959349467'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade(engine_name):
    globals()["upgrade_%s" % engine_name]()


def downgrade(engine_name):
    globals()["downgrade_%s" % engine_name]()





def upgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('rule_sql', sa.Column('category', sa.Text(), nullable=True))
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('rule_sql', 'category')
    # ### end Alembic commands ###

