mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
remove index that will never be used
This commit is contained in:
@@ -179,11 +179,6 @@ class Events(Base):
|
||||
"""Event history data."""
|
||||
|
||||
__table_args__ = (
|
||||
# Used for fetching events at a specific time
|
||||
# see logbook
|
||||
Index(
|
||||
"ix_events_event_type_id_time_fired_ts", "event_type_id", "time_fired_ts"
|
||||
),
|
||||
Index(
|
||||
EVENTS_CONTEXT_ID_BIN_INDEX,
|
||||
"context_id_bin",
|
||||
|
@@ -983,7 +983,6 @@ def _apply_update( # noqa: C901
|
||||
elif new_version == 37:
|
||||
_add_columns(session_maker, "events", [f"event_type_id {big_int}"])
|
||||
_create_index(session_maker, "events", "ix_events_event_type_id")
|
||||
_create_index(session_maker, "events", "ix_events_event_type_id_time_fired_ts")
|
||||
else:
|
||||
raise ValueError(f"No schema migration defined for version {new_version}")
|
||||
|
||||
|
Reference in New Issue
Block a user