mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 09:12:06 -05:00
add message_id column to notifications
This commit is contained in:
@@ -15,7 +15,14 @@ down_revision = "0412_remove_priority"
|
|||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
op.add_column("notifications", sa.Column("message_id", sa.Text))
|
op.add_column("notifications", sa.Column("message_id", sa.Text))
|
||||||
|
op.create_index(
|
||||||
|
"ix_notifications_message_id",
|
||||||
|
"notifications",
|
||||||
|
["message_id"],
|
||||||
|
unique=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
|
op.drop_index("ix_notifications_message_id", table_name="notifications")
|
||||||
op.drop_column("notifications", "message_id")
|
op.drop_column("notifications", "message_id")
|
||||||
|
|||||||
Reference in New Issue
Block a user