"""add unique constraint to task order number

Revision ID: 3bd8552f1c57
Revises: <KEY>
Create Date: 2019-12-10 12:45:17.535973

"""
from alembic import op

# revision identifiers, used by Alembic.
revision = '3bd8552f1c57' # pragma: allowlist secret
down_revision = '<KEY>' # pragma: allowlist secret
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint('task_orders_number_key', 'task_orders', ['number'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint('task_orders_number_key', 'task_orders', type_='unique')
    # ### end Alembic commands ###
