Fixed syntax error in ALTER TABLE statement (#70304) (#70336)

This commit is contained in:
Dmitry Katsubo 2022-04-23 09:29:25 +02:00 committed by Paulus Schoutsen
parent c4db48d8f1
commit cbdef59651

View file

@ -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: