Skip to content

Commit

Permalink
migration chnaged
Browse files Browse the repository at this point in the history
  • Loading branch information
annapurna-gupta committed Feb 18, 2025
1 parent af0f4ad commit 3bb035a
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ def upgrade():
batch_op.add_column(sa.Column('profile_image_path', sa.String(length=255), nullable=True))
batch_op.add_column(sa.Column('fullname',
sa.String(length=255), nullable=True))
batch_op.alter_column('fullname',
existing_type=sa.VARCHAR(length=255),
nullable=True)

op.execute("UPDATE changes SET version_name = NULL WHERE version_name = 'None';")
op.execute("UPDATE changes SET comment = NULL WHERE comment = 'None';")

# ### end Alembic commands ###

Expand All @@ -39,10 +33,4 @@ def downgrade():
batch_op.drop_column('profile_image_path')
batch_op.drop_column('fullname')

# ### end Alembic commands ###
op.execute("UPDATE changes SET version_name = 'None' WHERE version_name IS NULL;")
op.execute("UPDATE changes SET comment = 'None' WHERE comment IS NULL;")
# ### end Alembic commands ###

# ### end Alembic commands ###

0 comments on commit 3bb035a

Please sign in to comment.