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 GitHub
parent 37ea4660f9
commit 521579fc6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: