Add sms sender to service to be used in sms templates

in place of default numeric short code.

If not present default short code is used.
This commit is contained in:
Adam Shimali
2016-07-01 14:06:32 +01:00
parent 5e0033e36d
commit c29dd23702
11 changed files with 181 additions and 27 deletions

View File

@@ -0,0 +1,28 @@
"""empty message
Revision ID: 0036_service_sms_sender
Revises: 0035_notification_type
Create Date: 2016-06-30 14:55:33.811696
"""
# revision identifiers, used by Alembic.
revision = '0036_service_sms_sender'
down_revision = '0035_notification_type'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('services', sa.Column('sms_sender', sa.String(length=11), nullable=True))
op.add_column('services_history', sa.Column('sms_sender', sa.String(length=11), nullable=True))
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('services_history', 'sms_sender')
op.drop_column('services', 'sms_sender')
### end Alembic commands ###