"""adding progress to job table

Revision ID: e7c6490c904a
Revises: 6349f316e6f5
Create Date: 2021-11-01 11:55:14.564946

"""

# revision identifiers, used by Alembic.
revision = 'e7c6490c904a'
down_revision = '6349f316e6f5'
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('job', sa.Column('progress', sa.Numeric(), server_default='0', nullable=False))
    # ### end Alembic commands ###


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

