Skip to content

Commit

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

def upgrade():
with op.batch_alter_table("allocations", schema=None) as batch_op:
batch_op.add_column(
sa.Column("project_address", sa.String(length=42), nullable=False)
)
batch_op.drop_column("proposal_address")
batch_op.alter_column("proposal_address", new_column_name="project_address")


def downgrade():
with op.batch_alter_table("allocations", schema=None) as batch_op:
batch_op.add_column(
sa.Column("proposal_address", sa.VARCHAR(length=42), nullable=False)
)
batch_op.drop_column("project_address")
batch_op.alter_column("project_address", new_column_name="proposal_address")

0 comments on commit d94e78e

Please sign in to comment.