diff --git a/homeassistant/components/recorder/migration.py b/homeassistant/components/recorder/migration.py index 16b7d03b618..6af03575619 100644 --- a/homeassistant/components/recorder/migration.py +++ b/homeassistant/components/recorder/migration.py @@ -544,7 +544,7 @@ def _apply_update(instance, new_version, old_version): # noqa: C901 # https://github.com/home-assistant/core/issues/56104 text( f"ALTER TABLE {table} CONVERT TO " - "CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci LOCK=EXCLUSIVE" + "CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, LOCK=EXCLUSIVE" ) ) elif new_version == 22: