"""change primary key

Revision ID: ee3fd7a8da82
Revises: b837908be6a4
Create Date: 2021-10-07 20:04:58.174327

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'ee3fd7a8da82'
down_revision = 'b837908be6a4'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('areas_area_id_key', 'areas', type_='unique')
    op.drop_column('areas', 'id')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('areas', sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False))
    op.create_unique_constraint('areas_area_id_key', 'areas', ['area_id'])
    # ### end Alembic commands ###
