Update name of UniqueContraint to include the table name

This commit is contained in:
leigh-mil
2019-12-16 10:21:45 -05:00
parent ffbf612290
commit afad5362a1
2 changed files with 3 additions and 3 deletions

View File

@@ -18,11 +18,11 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_unique_constraint('name_portfolio_id_unique_constraint', 'applications', ['name', 'portfolio_id'])
op.create_unique_constraint('applications_name_portfolio_id_key', 'applications', ['name', 'portfolio_id'])
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint('name_portfolio_id_unique_constraint', 'applications', type_='unique')
op.drop_constraint('applications_name_portfolio_id_key', 'applications', type_='unique')
# ### end Alembic commands ###