2017-04-26 10:22:20 +01:00
|
|
|
"""empty message
|
|
|
|
|
|
2017-04-26 11:31:58 +01:00
|
|
|
Revision ID: 0077_add_intl_notification
|
|
|
|
|
Revises: 0076_add_intl_flag_to_provider
|
2017-04-26 10:22:20 +01:00
|
|
|
Create Date: 2017-04-25 11:34:43.229494
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2023-08-29 14:54:30 -07:00
|
|
|
revision = "0077_add_intl_notification"
|
|
|
|
|
down_revision = "0076_add_intl_flag_to_provider"
|
2017-04-26 10:22:20 +01:00
|
|
|
|
|
|
|
|
import sqlalchemy as sa
|
2023-12-08 21:43:52 -05:00
|
|
|
from alembic import op
|
2017-04-26 10:22:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.add_column(
|
|
|
|
|
"notification_history", sa.Column("international", sa.Boolean(), nullable=True)
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"notification_history", sa.Column("phone_prefix", sa.String(), nullable=True)
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"notification_history",
|
|
|
|
|
sa.Column("rate_multiplier", sa.Numeric(), nullable=True),
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"notifications", sa.Column("international", sa.Boolean(), nullable=True)
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"notifications", sa.Column("phone_prefix", sa.String(), nullable=True)
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"notifications", sa.Column("rate_multiplier", sa.Numeric(), nullable=True)
|
|
|
|
|
)
|
2017-04-26 10:22:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.drop_column("notifications", "rate_multiplier")
|
|
|
|
|
op.drop_column("notifications", "phone_prefix")
|
|
|
|
|
op.drop_column("notifications", "international")
|
|
|
|
|
op.drop_column("notification_history", "rate_multiplier")
|
|
|
|
|
op.drop_column("notification_history", "phone_prefix")
|
|
|
|
|
op.drop_column("notification_history", "international")
|