"""Create States table

Revision ID: d3c10a9f589a
Revises: ff7c3328a4b1
Create Date: 2017-07-20 13:25:58.071561

"""

# revision identifiers, used by Alembic.
revision = 'd3c10a9f589a'
down_revision = 'ff7c3328a4b1'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade(engine_name):
    globals()["upgrade_%s" % engine_name]()


def downgrade(engine_name):
    globals()["downgrade_%s" % engine_name]()





def upgrade_data_broker():
    ### commands auto generated by Alembic - please adjust! ###
    op.create_table('states',
        sa.Column('created_at', sa.DateTime(), nullable=True),
        sa.Column('updated_at', sa.DateTime(), nullable=True),
        sa.Column('states_id', sa.Integer(), nullable=False),
        sa.Column('state_code', sa.Text(), nullable=True),
        sa.Column('state_name', sa.Text(), nullable=True),
        sa.PrimaryKeyConstraint('states_id')
    )
    ### end Alembic commands ###


def downgrade_data_broker():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('states')
    ### end Alembic commands ###

