"""Remove the retired campaign and hotel site modules. Revision ID: 0012_remove_offer_modules Revises: 0011_remove_cta_banner_module Create Date: 2026-08-17 """ from alembic import op from sqlalchemy import inspect revision = "0012_remove_offer_modules" down_revision = "0011_remove_cta_banner_module" branch_labels = None depends_on = None def upgrade() -> None: existing_tables = set(inspect(op.get_bind()).get_table_names()) for table_name in ("Campaign", "HotelGroup"): if table_name in existing_tables: op.drop_table(table_name) def downgrade() -> None: # The retired offer modules have no downgrade path. Restore them from a backup if needed. pass