From 82f6d2ce7505b2796fc32b33a443d2ea729e7f1d Mon Sep 17 00:00:00 2001 From: Kevin Morris <kevr@0cost.org> Date: Tue, 18 May 2021 02:44:59 -0700 Subject: [PATCH] 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 <kevr@0cost.org> --- .../versions/ef39fcd6e1cd_add_sso_account_id_in_table_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/ef39fcd6e1cd_add_sso_account_id_in_table_users.py b/migrations/versions/ef39fcd6e1cd_add_sso_account_id_in_table_users.py index 9e125165a..d3b3693d4 100644 --- a/migrations/versions/ef39fcd6e1cd_add_sso_account_id_in_table_users.py +++ b/migrations/versions/ef39fcd6e1cd_add_sso_account_id_in_table_users.py @@ -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 ### -- GitLab