Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API - Host Strata Hotel Category #550

Merged
merged 6 commits into from
Feb 24, 2025
Merged

Conversation

shaangill025
Copy link
Collaborator

Issue:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

batch_op.drop_column('strata_hotel_category')

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also there is a migration that was created before that uses this. So dont drop this enum if this needs to be downgraded because the previous change will still need that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed.

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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should refer to the enum that was created above here and in the history

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, I initially did it this way to handle potential deployment to test environment without changes from main branch [with a valid revision id change].

@shaangill025 shaangill025 force-pushed the fix_25480 branch 2 times, most recently from 7fd4cfa to b0edc8e Compare February 14, 2025 02:02
@shaangill025
Copy link
Collaborator Author

@kris-daxiom Can I get a approval on this?

Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Copy link
Collaborator

@kris-daxiom kris-daxiom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shaangill025 shaangill025 merged commit 4077551 into bcgov:main Feb 24, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants