mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
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:
28
migrations/versions/0036_service_sms_sender.py
Normal file
28
migrations/versions/0036_service_sms_sender.py
Normal 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 ###
|
||||
Reference in New Issue
Block a user