"""empty message

Revision ID: 09abfcd902c2
Revises: 
Create Date: 2017-07-05 11:33:16.371550

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '09abfcd902c2'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('bind_cluster',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('cluster', sa.String(length=64), nullable=True),
    sa.Column('bind_ip', sa.String(length=64), nullable=True),
    sa.Column('timestamp', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('dns_host',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('zone', sa.String(length=64), nullable=True),
    sa.Column('host', sa.String(length=64), nullable=True),
    sa.Column('type', sa.String(length=64), nullable=True),
    sa.Column('data', sa.String(length=64), nullable=True),
    sa.Column('ttl', sa.Integer(), nullable=True),
    sa.Column('priority', sa.Integer(), nullable=True),
    sa.Column('port', sa.Integer(), nullable=True),
    sa.Column('weight', sa.Integer(), nullable=True),
    sa.Column('status', sa.String(length=64), nullable=True),
    sa.Column('cluster', sa.String(length=64), nullable=True),
    sa.Column('timestamp', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('dns_zone',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('zone', sa.String(length=64), nullable=True),
    sa.Column('type', sa.String(length=64), nullable=True),
    sa.Column('master_domain', sa.String(length=64), nullable=True),
    sa.Column('mail_domain', sa.String(length=64), nullable=True),
    sa.Column('soa_serial', sa.Integer(), nullable=True),
    sa.Column('soa_refresh', sa.Integer(), nullable=True),
    sa.Column('soa_retry', sa.Integer(), nullable=True),
    sa.Column('soa_expire', sa.Integer(), nullable=True),
    sa.Column('soa_mininum', sa.Integer(), nullable=True),
    sa.Column('timestamp', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('user',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('username', sa.String(length=64), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('user')
    op.drop_table('dns_zone')
    op.drop_table('dns_host')
    op.drop_table('bind_cluster')
    # ### end Alembic commands ###
