mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 17:09:49 -04:00
- initial build of this ONLY support MMG so we can assume that all existing entries are all MMG, so any nulls == MMG. - This PR will put in fire text so not so safe to keep doing this back and forward.
23 lines
555 B
Python
23 lines
555 B
Python
"""empty message
|
|
|
|
Revision ID: 0092_populate_inbound_provider
|
|
Revises: 0091_add_inbound_provider
|
|
Create Date: 2017-05-22 10:23:43.939050
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '0092_populate_inbound_provider'
|
|
down_revision = '0091_add_inbound_provider'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
def upgrade():
|
|
op.execute("UPDATE inbound_sms SET provider='mmg' WHERE provider is null")
|
|
|
|
|
|
def downgrade():
|
|
op.execute("UPDATE inbound_sms SET provider=null WHERE provider = 'mmg'")
|