Skip to content

Commit

Permalink
fix(dp): Fix requests migration (#12411)
Browse files Browse the repository at this point in the history
Migration generated by alembic was wrong, since it tried to
delete table when it was still referenced as foreign key.

Signed-off-by: Kuba Marciniszyn <kuba@freedomfi.com>
  • Loading branch information
jkmar committed Apr 6, 2022
1 parent 69d2344 commit d4b22d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def upgrade():
Run upgrade
"""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('responses')
op.drop_table('request_states')
op.drop_constraint('requests_state_id_fkey', 'requests', type_='foreignkey')
op.drop_column('requests', 'state_id')
op.drop_table('responses')
op.drop_table('request_states')
# ### end Alembic commands ###


Expand Down

0 comments on commit d4b22d0

Please sign in to comment.