"""empty message

Revision ID: 70ef1b37a62e
Revises: None
Create Date: 2016-04-14 00:42:29.319973

"""

# revision identifiers, used by Alembic.
revision = '70ef1b37a62e'
down_revision = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cluster',
    sa.Column('name', sa.String(length=50), nullable=False),
    sa.Column('running', sa.Boolean(), nullable=True),
    sa.Column('last_updated', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('name')
    )
    op.create_table('node',
    sa.Column('name', sa.String(length=255), nullable=False),
    sa.Column('running', sa.Boolean(), nullable=True),
    sa.Column('last_updated', sa.DateTime(), nullable=True),
    sa.Column('error', sa.Boolean(), nullable=True),
    sa.Column('cluster_name', sa.String(length=255), nullable=True),
    sa.ForeignKeyConstraint(['cluster_name'], ['cluster.name'], ),
    sa.PrimaryKeyConstraint('name')
    )
    ### end Alembic commands ###


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