Skip to content

Commit

Permalink
feat: clean tables and rename table/schema
Browse files Browse the repository at this point in the history
  • Loading branch information
herve.le-bars committed Apr 5, 2024
1 parent c32a25d commit 2450c8c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/alembic/versions/730f5251b9dd_tables_clean_and_rename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""tables_clean_and_rename
Revision ID: 730f5251b9dd
Revises: 4e912be8a176
Create Date: 2024-04-05 15:00:40.225950
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '730f5251b9dd'
down_revision = '4e912be8a176'
branch_labels = None
depends_on = None


def upgrade() -> None:
op.rename_table('spire_ais_data', 'stg_spire_ais_data', schema='public')
op.rename_table('mpa_fr_with_mn', 'drop_mpa_fr_with_mn', schema='public')
pass


def downgrade() -> None:
op.rename_table('drop_mpa_fr_with_mn', 'mpa_fr_with_mn', schema='public')
op.rename_table('stg_spire_ais_data', 'spire_ais_data', schema='public')
pass

0 comments on commit 2450c8c

Please sign in to comment.