mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
24 lines
566 B
Python
24 lines
566 B
Python
"""
|
|
|
|
Revision ID: 0403_add_carrier
|
|
Revises: 0402_total_message_limit_default
|
|
|
|
"""
|
|
from alembic import op
|
|
from flask import current_app
|
|
import sqlalchemy as sa
|
|
|
|
|
|
down_revision = "0402_total_message_limit_default"
|
|
revision = "0403_add_carrier"
|
|
|
|
|
|
def upgrade():
|
|
op.execute("ALTER TABLE notifications ADD COLUMN carrier text")
|
|
op.execute("ALTER TABLE notification_history ADD COLUMN carrier text")
|
|
|
|
|
|
def downgrade():
|
|
op.execute("ALTER TABLE notifications DROP COLUMN carrier text")
|
|
op.execute("ALTER TABLE notification_history DROP COLUMN carrier text")
|