Skip to content

Commit

Permalink
25480 - migration update
Browse files Browse the repository at this point in the history
Signed-off-by: Shaanjot Gill <[email protected]>
  • Loading branch information
shaangill025 committed Feb 14, 2025
1 parent 4ea7b8f commit b0edc8e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions strr-api/migrations/versions/20250204_1137_7e9fccbeb3ed_.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@


def upgrade():
stratahotelcategory = postgresql.ENUM('FULL_SERVICE', 'MULTI_UNIT_NON_PR', 'POST_DECEMBER_2023', name='stratahotelcategory')
stratahotelcategory.create(op.get_bind(), checkfirst=True)

with op.batch_alter_table('rental_properties', schema=None) as batch_op:
batch_op.add_column(sa.Column('strata_hotel_category', sa.Enum('FULL_SERVICE', 'MULTI_UNIT_NON_PR', 'POST_DECEMBER_2023', name='stratahotelcategory'), nullable=True))
batch_op.create_index(batch_op.f('ix_rental_properties_strata_hotel_category'), ['strata_hotel_category'], unique=False)
Expand All @@ -37,6 +34,3 @@ def downgrade():
with op.batch_alter_table('rental_properties_history', schema=None) as batch_op:
batch_op.drop_index(batch_op.f('ix_rental_properties_history_strata_hotel_category'))
batch_op.drop_column('strata_hotel_category')

stratahotelcategory = postgresql.ENUM(name='stratahotelcategory')
stratahotelcategory.drop(op.get_bind(), checkfirst=True)

0 comments on commit b0edc8e

Please sign in to comment.