Skip to content

Commit

Permalink
Remove index
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Oct 17, 2023
1 parent c9296d7 commit f15af9c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions migrations/versions/0439_add_index_n_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f15af9c

Please sign in to comment.