Merge pull request #1474 from GSA/change_retry_schedule

add message_id column to notifications
This commit is contained in:
Kenneth Kehl
2024-12-11 09:57:07 -08:00
committed by GitHub

View File

@@ -0,0 +1,28 @@
"""
Revision ID: 0413_add_message_id
Revises: 412_remove_priority
Create Date: 2023-12-11 11:35:22.873930
"""
import sqlalchemy as sa
from alembic import op
revision = "0413_add_message_id"
down_revision = "0412_remove_priority"
def upgrade():
op.add_column("notifications", sa.Column("message_id", sa.Text))
op.create_index(
"ix_notifications_message_id",
"notifications",
["message_id"],
unique=False,
)
def downgrade():
op.drop_index("ix_notifications_message_id", table_name="notifications")
op.drop_column("notifications", "message_id")