migration fix

This commit is contained in:
leigh-mil
2019-12-12 11:58:59 -05:00
parent 6446b4fbd0
commit 9caef2883a
2 changed files with 7 additions and 4 deletions

View File

@@ -18,11 +18,11 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_unique_constraint(None, 'task_orders', ['number'])
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(None, 'task_orders', type_='unique')
op.drop_constraint('task_orders_number_key', 'task_orders', type_='unique')
# ### end Alembic commands ###