"""empty message

Revision ID: c7f9e3b14b06
Revises: 1581b786a40c
Create Date: 2018-11-12 15:40:59.674954

"""

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

from alembic import op
import sqlalchemy as sa


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('task', sa.Column('claimed_at', sa.DateTime(), nullable=True))
    op.add_column('task', sa.Column('enqueued_at', sa.DateTime(), nullable=True))
    op.add_column('task', sa.Column('finished_at', sa.DateTime(), nullable=True))
    op.add_column('task', sa.Column('return_code', sa.SmallInteger(), nullable=True))
    op.drop_column('task', 'status')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('task', sa.Column('status', sa.VARCHAR(length=128), autoincrement=False, nullable=True))
    op.drop_column('task', 'return_code')
    op.drop_column('task', 'finished_at')
    op.drop_column('task', 'enqueued_at')
    op.drop_column('task', 'claimed_at')
    # ### end Alembic commands ###
