Adds provider onto the inbound sms table so we know where this came from.

This commit is contained in:
Martyn Inglis
2017-06-02 16:37:57 +01:00
parent 3e1de2e901
commit 012f8d2675
4 changed files with 30 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
"""empty message
Revision ID: 0090_add_inbound_provider
Revises: 0090_inbound_sms
Create Date: 2017-06-02 16:07:35.445423
"""
# revision identifiers, used by Alembic.
revision = '0090_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')