Correct recorder migration._add_columns for PostgreSQL (#60547)
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…
Reference in New Issue