"""empty message

Revision ID: bb89cf008de3
Revises: c7f9e3b14b06
Create Date: 2018-11-12 15:41:28.444549

"""

# revision identifiers, used by Alembic.
revision = 'bb89cf008de3'
down_revision = 'c7f9e3b14b06'

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

def upgrade():
    status = postgresql.ENUM('ENQUEUED', 'CLAIMED', 'FINISHED', name='status')
    status.create(op.get_bind())
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('task', sa.Column('status', postgresql.ENUM('ENQUEUED', 'CLAIMED', 'FINISHED', name='status'), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('task', 'status')
    # ### end Alembic commands ###
    status = postgresql.ENUM('ENQUEUED', 'CLAIMED', 'FINISHED', name='status')
    status.drop(op.get_bind())
