From 4870689e5e6dceaa82e2e2188fa9e01571a46f99 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 8 Dec 2021 21:16:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmysql8.0=20flyway?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V5__auth.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/src/main/resources/db/migration/V5__auth.sql b/backend/src/main/resources/db/migration/V5__auth.sql index 445ed36dd9..befd3499c9 100644 --- a/backend/src/main/resources/db/migration/V5__auth.sql +++ b/backend/src/main/resources/db/migration/V5__auth.sql @@ -333,7 +333,7 @@ DECLARE oTempChild VARCHAR(8000); SET oTemp = ''; -SET oTempChild = CAST(parentId AS CHAR); +SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci; WHILE oTempChild IS NOT NULL @@ -366,7 +366,8 @@ DECLARE oTempChild VARCHAR(8000); SET oTemp = ''; -SET oTempChild = CAST(parentId AS CHAR); +SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci; + WHILE oTempChild IS NOT NULL @@ -420,7 +421,7 @@ DECLARE oTempChild longtext; SET oTemp = ''; -SET oTempChild = CAST(parentId AS CHAR); +SET oTempChild = CAST(parentId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci; WHILE oTempChild IS NOT NULL @@ -453,7 +454,7 @@ DECLARE oTempParent longtext; SET oTemp = ''; -SET oTempParent = CAST(childrenId AS CHAR); +SET oTempParent = CAST(childrenId AS CHAR CHARACTER set utf8mb4) COLLATE utf8mb4_general_ci; WHILE oTempParent IS NOT NULL