mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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:
|
||||
raise_if_exception_missing_str(err, ["duplicate"])
|
||||
raise_if_exception_missing_str(err, ["already exists", "duplicate"])
|
||||
_LOGGER.warning(
|
||||
"Column %s already exists on %s, continuing",
|
||||
column_def.split(" ")[1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user