From f15af9cfe567e099300ffc517c9ffb327ba09cdd Mon Sep 17 00:00:00 2001 From: Jumana Bahrainwala Date: Tue, 17 Oct 2023 14:22:41 -0400 Subject: [PATCH] Remove index --- migrations/versions/0439_add_index_n_history.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/migrations/versions/0439_add_index_n_history.py b/migrations/versions/0439_add_index_n_history.py index 8c9645d0db..aa746c9217 100644 --- a/migrations/versions/0439_add_index_n_history.py +++ b/migrations/versions/0439_add_index_n_history.py @@ -13,13 +13,10 @@ down_revision = "0438_sms_templates_msgs_left" -# option 1 +# Decided against adding this index in prd as the table is too large and needs more testing def upgrade(): - op.execute("COMMIT") - op.create_index( - op.f("ix_notification_history_created_by_id"), "notification_history", ["created_by_id"], postgresql_concurrently=True - ) + pass def downgrade(): - op.drop_index(op.f("ix_notification_history_created_by_id"), table_name="notification_history") + pass