Skip to content

Commit

Permalink
FIX-OCT-1576: fix altering migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarbacinski committed May 28, 2024
1 parent 7477ca7 commit 07ff61f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

def upgrade():
with op.batch_alter_table("pending_epoch_snapshots", schema=None) as batch_op:
batch_op.add_column(
sa.Column("vanilla_individual_rewards", sa.String(), nullable=False)
batch_op.alter_column(
column_name="all_individual_rewards",
new_column_name="vanilla_individual_rewards",
)
batch_op.drop_column("all_individual_rewards")


def downgrade():
with op.batch_alter_table("pending_epoch_snapshots", schema=None) as batch_op:
batch_op.add_column(
sa.Column("all_individual_rewards", sa.VARCHAR(), nullable=False)
batch_op.alter_column(
column_name="vanilla_individual_rewards",
new_column_name="all_individual_rewards",
)
batch_op.drop_column("vanilla_individual_rewards")

0 comments on commit 07ff61f

Please sign in to comment.