Skip to content

Commit

Permalink
Drop retired table (#4132)
Browse files Browse the repository at this point in the history
Drops `weather_station_model_predictions_retired` and the dependent mat view `morecast_2_materialized_view` since these are now partitioned and the mat view is not needed.
  • Loading branch information
conbrad authored Nov 25, 2024
1 parent c0d1054 commit 3cfabd7
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""partition weather_station_model_predictions part 2
Revision ID: 4014ddf1f874
Revises: 362d268606f3
Create Date: 2024-11-25 09:19:43.594892
"""

from alembic import op

# revision identifiers, used by Alembic.
revision = "4014ddf1f874"
down_revision = "362d268606f3"
branch_labels = None
depends_on = None


def upgrade():
# ### drop table that's now partitioned ###
op.execute("DROP MATERIALIZED VIEW morecast_2_materialized_view")
op.drop_table("weather_station_model_predictions_retired")


def downgrade():
# ### restore from backup instead ###
pass

0 comments on commit 3cfabd7

Please sign in to comment.