mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Correct recorder migration._add_columns for PostgreSQL (#60547)
This commit is contained in:
parent
54df81cbab
commit
d980ca7e04
@ -220,7 +220,7 @@ def _add_columns(connection, table_name, columns_def):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
except (InternalError, OperationalError) as err:
|
except (InternalError, OperationalError) as err:
|
||||||
raise_if_exception_missing_str(err, ["duplicate"])
|
raise_if_exception_missing_str(err, ["already exists", "duplicate"])
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Column %s already exists on %s, continuing",
|
"Column %s already exists on %s, continuing",
|
||||||
column_def.split(" ")[1],
|
column_def.split(" ")[1],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user