"""Create ZipCity table

Revision ID: 2c2b9b1ff0e5
Revises: d3c10a9f589a
Create Date: 2017-07-21 12:08:10.540166

"""

# revision identifiers, used by Alembic.
revision = '2c2b9b1ff0e5'
down_revision = 'd3c10a9f589a'
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('zip_city',
        sa.Column('created_at', sa.DateTime(), nullable=True),
        sa.Column('updated_at', sa.DateTime(), nullable=True),
        sa.Column('zip_city_id', sa.Integer(), nullable=False),
        sa.Column('zip_code', sa.Text(), nullable=True),
        sa.Column('city_name', sa.Text(), nullable=True),
        sa.PrimaryKeyConstraint('zip_city_id')
    )
    ### end Alembic commands ###


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

