From 521579fc6a8098ced2904af23523d3fb82ccd8b5 Mon Sep 17 00:00:00 2001 From: Dmitry Katsubo Date: Sat, 23 Apr 2022 09:29:25 +0200 Subject: [PATCH] Fixed syntax error in ALTER TABLE statement (#70304) (#70336) --- homeassistant/components/recorder/migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: