From 5155a47cc31c0ad366c2b427db1647e8133ee9ea Mon Sep 17 00:00:00 2001 From: Pierre Massat Date: Thu, 15 Aug 2024 18:22:52 -0400 Subject: [PATCH] fix(eap-spans): Make project_id index removal migration a no-op (#6215) --- .../0007_drop_project_id_index.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/snuba/snuba_migrations/events_analytics_platform/0007_drop_project_id_index.py b/snuba/snuba_migrations/events_analytics_platform/0007_drop_project_id_index.py index 57293d5535..321cf02ece 100644 --- a/snuba/snuba_migrations/events_analytics_platform/0007_drop_project_id_index.py +++ b/snuba/snuba_migrations/events_analytics_platform/0007_drop_project_id_index.py @@ -1,25 +1,14 @@ from typing import Sequence -from snuba.clusters.storage_sets import StorageSetKey -from snuba.migrations import migration, operations +from snuba.migrations import migration from snuba.migrations.operations import SqlOperation -storage_set_name = StorageSetKey.EVENTS_ANALYTICS_PLATFORM -local_table_name = "eap_spans_local" - class Migration(migration.ClickhouseNodeMigration): blocking = False def forwards_ops(self) -> Sequence[SqlOperation]: - return [ - operations.DropIndex( - storage_set=StorageSetKey.EVENTS_ANALYTICS_PLATFORM, - table_name="eap_spans_local", - index_name="bf_project_id", - target=operations.OperationTarget.LOCAL, - ), - ] + return [] def backwards_ops(self) -> Sequence[SqlOperation]: return []