Commit 82f6d2ce authored by Kevin Morris's avatar Kevin Morris
Browse files

alembic: fix ef39fcd6e1cd downgrade



op.drop_constraint requires a valid field to drop the constraint on.
Without this, downgrade cannot occur.
Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent b4142245
......@@ -25,6 +25,6 @@ def upgrade():
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'Users', type_='unique')
op.drop_constraint('SSOAccountID', 'Users', type_='unique')
op.drop_column('Users', 'SSOAccountID')
# ### end Alembic commands ###
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment