mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
notify-api-522
This commit is contained in:
23
migrations/versions/0403_add_carrier.py
Normal file
23
migrations/versions/0403_add_carrier.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
|
||||
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")
|
||||
Reference in New Issue
Block a user