Files
notifications-api/migrations/versions/0091_add_inbound_provider.py
Martyn Inglis 199c43c507 Migration script to populate the provider.
- 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.
2017-06-02 16:49:11 +01:00

23 lines
500 B
Python

"""empty message
Revision ID: 0091_add_inbound_provider
Revises: 0090_inbound_sms
Create Date: 2017-06-02 16:07:35.445423
"""
# revision identifiers, used by Alembic.
revision = '0091_add_inbound_provider'
down_revision = '0090_inbound_sms'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
op.add_column('inbound_sms', sa.Column('provider', sa.String(), nullable=True))
def downgrade():
op.drop_column('inbound_sms', 'provider')