Files
notifications-api/migrations/versions/0061_add_client_reference.py

31 lines
726 B
Python
Raw Normal View History

"""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.
2023-08-29 14:54:30 -07:00
revision = "0061_add_client_reference"
down_revision = "0060_add_letter_template_type"
import sqlalchemy as sa
from alembic import op
def upgrade():
2023-08-29 14:54:30 -07:00
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():
2023-08-29 14:54:30 -07:00
op.drop_column("notifications", "client_reference")
op.drop_column("notification_history", "client_reference")