mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05:00
31 lines
726 B
Python
31 lines
726 B
Python
"""empty message
|
|
|
|
Revision ID: 0061_add_client_reference
|
|
Revises: 0060_add_letter_template_type
|
|
Create Date: 2016-11-17 13:19:25.820617
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "0061_add_client_reference"
|
|
down_revision = "0060_add_letter_template_type"
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
"notifications",
|
|
sa.Column("client_reference", sa.String(), index=True, nullable=True),
|
|
)
|
|
op.add_column(
|
|
"notification_history",
|
|
sa.Column("client_reference", sa.String(), nullable=True),
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("notifications", "client_reference")
|
|
op.drop_column("notification_history", "client_reference")
|