"""empty message

Revision ID: 139cb0dc4ddf
Revises: None
Create Date: 2018-02-19 18:16:45.793977

"""

# revision identifiers, used by Alembic.
revision = '139cb0dc4ddf'
down_revision = None

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

def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('tank',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('tank_name', sa.Text(), nullable=True),
    sa.Column('capabilities', postgresql.JSONB(astext_type=sa.Text()), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('task',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('status', sa.String(length=128), nullable=True),
    sa.Column('job', sa.String(length=128), nullable=True),
    sa.Column('claimed_by', sa.Text(), nullable=True),
    sa.Column('config_initial', sa.Text(), nullable=True),
    sa.Column('config', postgresql.JSONB(astext_type=sa.Text()), nullable=True),
    sa.Column('demands', postgresql.JSONB(astext_type=sa.Text()), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('task')
    op.drop_table('tank')
    # ### end Alembic commands ###
