Skip to content

Commit

Permalink
fix(dp): Fix requests migration (magma#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 authored and emakeev committed Aug 5, 2022
1 parent 3f987f9 commit b856d3b
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 b856d3b

Please sign in to comment.