Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """Change field replenishment_forecasts_hub
- Revision ID: 242709906bc4
- Revises: 972d36690057
- Create Date: 2023-05-17 12:54:16.612251
- """
- from alembic import op
- import sqlalchemy as sa
- import clickhouse_sqlalchemy.types.common as common
- from clickhouse_sqlalchemy import engines
- # revision identifiers, used by Alembic.
- revision = '242709906bc4'
- down_revision = '972d36690057'
- branch_labels = None
- depends_on = None
- def upgrade():
- op.drop_column(
- 'replenishment_forecasts_hub',
- 'nub_nm',
- )
- op.add_column(
- 'replenishment_forecasts_hub',
- sa.Column(
- 'hub_nm',
- common.String,
- nullable=False,
- )
- )
- def downgrade():
- op.drop_column(
- 'replenishment_forecasts_hub',
- 'hub_nm',
- )
- op.add_column(
- 'replenishment_forecasts_hub',
- sa.Column(
- 'nub_nm',
- common.String,
- nullable=False,
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement