From f1612f50c63a94d0aad09305d90eaeac8ccb1a1f Mon Sep 17 00:00:00 2001 From: "lin.ma" Date: Fri, 3 Jul 2026 10:46:46 +0800 Subject: [PATCH] [guesttools]: support emoji script output Backport script output utf8mb4 storage to 5.4.10. 1. Why? Guest script stdout and stderr can contain four-byte UTF-8 characters. The old column charset cannot store emoji output correctly. 2. How? Change stdout and stderr columns to utf8mb4 in V5.4.10 schema. The ALTER MODIFY statements are idempotent for repeated upgrades. 3. Side effects? Column charset changes to utf8mb4 with utf8mb4_unicode_ci collation. # Summary of changes (by module): - db: alter guest script stdout and stderr columns to utf8mb4. Source-Commit: da699ea9498d745d0058daafa4136bc50f42bdb7 Related: ZSTAC-86425, ZSTAC-80478 Change-Id: I9e8458c2c6b497afb3d00545019f1c6419acccf1 --- conf/db/upgrade/V5.4.10__schema.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/db/upgrade/V5.4.10__schema.sql b/conf/db/upgrade/V5.4.10__schema.sql index e69de29bb2d..2f24fd01d79 100644 --- a/conf/db/upgrade/V5.4.10__schema.sql +++ b/conf/db/upgrade/V5.4.10__schema.sql @@ -0,0 +1,5 @@ +ALTER TABLE `GuestVmScriptExecutedRecordDetailVO` + MODIFY `stdout` MEDIUMTEXT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_unicode_ci`; + +ALTER TABLE `GuestVmScriptExecutedRecordDetailVO` + MODIFY `stderr` MEDIUMTEXT CHARACTER SET `utf8mb4` COLLATE `utf8mb4_unicode_ci`;