mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Remove email_reply_to and letter_contact_block from Services
This commit is contained in:
28
migrations/versions/0143_remove_reply_to.py
Normal file
28
migrations/versions/0143_remove_reply_to.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0143_remove_reply_to
|
||||
Revises: 0142_validate_constraint
|
||||
Create Date: 2017-11-21 10:42:25.045444
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0143_remove_reply_to'
|
||||
down_revision = '0142_validate_constraint'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.drop_column('services', 'letter_contact_block')
|
||||
op.drop_column('services', 'reply_to_email_address')
|
||||
op.drop_column('services_history', 'letter_contact_block')
|
||||
op.drop_column('services_history', 'reply_to_email_address')
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.add_column('services_history', sa.Column('reply_to_email_address', sa.TEXT(),
|
||||
autoincrement=False, nullable=True))
|
||||
op.add_column('services_history', sa.Column('letter_contact_block', sa.TEXT(), autoincrement=False, nullable=True))
|
||||
op.add_column('services', sa.Column('reply_to_email_address', sa.TEXT(), autoincrement=False, nullable=True))
|
||||
op.add_column('services', sa.Column('letter_contact_block', sa.TEXT(), autoincrement=False, nullable=True))
|
||||
Reference in New Issue
Block a user