mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-08 22:22:24 -05:00
add message_id column to notifications
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user