add message_id column to notifications

This commit is contained in:
Kenneth Kehl
2024-12-10 21:00:31 -08:00
parent 8c59b474b1
commit 69ecb2f096

View File

@@ -15,7 +15,14 @@ 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")