Skip to content
Snippets Groups Projects
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
Branches bert
No related tags found
No related merge requests found
......@@ -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 ###
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment