-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eap-spans): Make project_id index removal migration a no-op (#6215)
- Loading branch information
Showing
1 changed file
with
2 additions
and
13 deletions.
There are no files selected for viewing
15 changes: 2 additions & 13 deletions
15
snuba/snuba_migrations/events_analytics_platform/0007_drop_project_id_index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [] |