mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Add a column to Notifications to store the reply_to_text.
This is text value of the sender_id, depending on the channel this will be a SMS sender, email reply to address or a letter contact block. This is the first PR in a series to refactor how we send the "reply_to" the provider, eventually we can eliminate the notification_to_sms_sender and notification_to_email_to tables.
This commit is contained in:
21
migrations/versions/0144_add_notification_reply_to.py
Normal file
21
migrations/versions/0144_add_notification_reply_to.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0144_add_notification_reply_to
|
||||
Revises: 0143_remove_reply_to
|
||||
Create Date: 2017-11-22 14:23:48.806781
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0144_add_notification_reply_to'
|
||||
down_revision = '0143_remove_reply_to'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('notifications', sa.Column('reply_to_text', sa.String(), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('notifications', 'reply_to_text')
|
||||
Reference in New Issue
Block a user