diff --git a/migrations/versions/144929e0f5f_improve_operation_scheduling.py b/migrations/versions/144929e0f5f_improve_operation_scheduling.py index efc5903..0cdbc64 100644 --- a/migrations/versions/144929e0f5f_improve_operation_scheduling.py +++ b/migrations/versions/144929e0f5f_improve_operation_scheduling.py @@ -63,9 +63,6 @@ def upgrade(): def downgrade(): - op.get_bind().execute( - "alter sequence operation_id_seq rename to entry_id_seq" - ) op.create_table( "canceled_operation", @@ -79,6 +76,9 @@ def downgrade(): op.drop_column('operation', 'canceled') op.drop_column('operation', 'confirmed') + op.get_bind().execute( + "alter sequence operation_id_seq rename to entry_id_seq" + ) op.rename_table('operation', 'entry') op.get_bind().execute(