mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Silence spurious warnings about removing ix_states_entity_id with newer installs (#86961)
* Silence spurious warnings about removing ix_states_entity_id with newer installs https://ptb.discord.com/channels/330944238910963714/427516175237382144/1069648035459641465 * Silence spurious warnings about removing ix_states_entity_id with newer installs https://ptb.discord.com/channels/330944238910963714/427516175237382144/1069648035459641465
This commit is contained in:
parent
53c5f02ca2
commit
f874258e7e
@ -274,9 +274,13 @@ def _drop_index(
|
|||||||
"Finished dropping index %s from table %s", index_name, table_name
|
"Finished dropping index %s from table %s", index_name, table_name
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if index_name == "ix_states_context_parent_id":
|
if index_name in ("ix_states_entity_id", "ix_states_context_parent_id"):
|
||||||
# Was only there on nightly so we do not want
|
# ix_states_context_parent_id was only there on nightly so we do not want
|
||||||
# to generate log noise or issues about it.
|
# to generate log noise or issues about it.
|
||||||
|
#
|
||||||
|
# ix_states_entity_id was only there for users who upgraded from schema
|
||||||
|
# version 8 or earlier. Newer installs will not have it so we do not
|
||||||
|
# want to generate log noise or issues about it.
|
||||||
return
|
return
|
||||||
|
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user