mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Add comment clarifying recorder migration to schema version 16 (#123902)
This commit is contained in:
parent
0790611b93
commit
9c4677a3c6
@ -1116,6 +1116,10 @@ class _SchemaVersion16Migrator(_SchemaVersionMigrator, target_version=16):
|
||||
SupportedDialect.MYSQL,
|
||||
SupportedDialect.POSTGRESQL,
|
||||
):
|
||||
# Version 16 changes settings for the foreign key constraint on
|
||||
# states.old_state_id. Dropping the constraint is not really correct
|
||||
# we should have recreated it instead. Recreating the constraint now
|
||||
# happens in the migration to schema version 45.
|
||||
_drop_foreign_key_constraints(
|
||||
self.session_maker, self.engine, TABLE_STATES, "old_state_id"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user