Fixing name of account constraint to account_name_uc
@@ -17,7 +17,7 @@ import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_index('ix_account_name', 'account', ['name'], unique=True)
- op.drop_constraint(u'account_name_key', 'account', type_='unique')
+ op.drop_constraint(u'account_name_uc', 'account', type_='unique')
op.create_index('ix_technology_name', 'technology', ['name'], unique=True)
# ### end Alembic commands ###
@@ -25,6 +25,6 @@ def upgrade():
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index('ix_technology_name', table_name='technology')
- op.create_unique_constraint(u'account_name_key', 'account', ['name'])
+ op.create_unique_constraint(u'account_name_uc', 'account', ['name'])
op.drop_index('ix_account_name', table_name='account')
# ### end Alembic commands ###
