mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix missing length on context id and incorrect precision with MariaDB (dev only fix) (#90058)
Fix missing length on context id column with MariaDB spotted by @dcoder42 The migration still worked as intented but the blob should have been a bit smaller. This only affects dev so there is no need for a backport
This commit is contained in:
parent
c507ca1e66
commit
616e6e6ae8
@ -549,7 +549,7 @@ def _apply_update( # noqa: C901
|
|||||||
if dialect == SupportedDialect.MYSQL:
|
if dialect == SupportedDialect.MYSQL:
|
||||||
timestamp_type = "DOUBLE PRECISION"
|
timestamp_type = "DOUBLE PRECISION"
|
||||||
context_bin_type = f"BLOB({CONTEXT_ID_BIN_MAX_LENGTH})"
|
context_bin_type = f"BLOB({CONTEXT_ID_BIN_MAX_LENGTH})"
|
||||||
if dialect == SupportedDialect.POSTGRESQL:
|
elif dialect == SupportedDialect.POSTGRESQL:
|
||||||
timestamp_type = "DOUBLE PRECISION"
|
timestamp_type = "DOUBLE PRECISION"
|
||||||
context_bin_type = "BYTEA"
|
context_bin_type = "BYTEA"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user