Skip to content

Commit

Permalink
Fixes to the downgrade migration for user_id in sqlatables
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed Dec 17, 2015
1 parent 6f948f0 commit f24e58a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions panoramix/migrations/versions/2591d77e9831_user_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def upgrade():


def downgrade():
with op.batch_alter_table('tables'):
op.drop_constraint(None, 'tables', type_='foreignkey')
op.drop_column('tables', 'user_id')

with op.batch_alter_table('tables') as batch_op:
batch_op.drop_constraint('user_id', type_='foreignkey')
batch_op.drop_column('user_id')

0 comments on commit f24e58a

Please sign in to comment.