From e858dea42e6a058f39ba05c37e1514dc38e988eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Thu, 7 Nov 2024 16:18:56 +0100 Subject: [PATCH] fix: Update default charset and collation for mysql - EXO-75202 With mysql 8.4, the default charset and collation are updated from UTF to UTF8MB4. In addition NVARCHAR is now deprecated and replaced by VARCHAR. This commit adapt liquibase changes in order to apply this change. Resolves meeds-io/meeds#2564 --- .../layout-rdbms.db.changelog-1.0.0.xml | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/layout-service/src/main/resources/changelog/layout-rdbms.db.changelog-1.0.0.xml b/layout-service/src/main/resources/changelog/layout-rdbms.db.changelog-1.0.0.xml index fe849c890..803296c53 100644 --- a/layout-service/src/main/resources/changelog/layout-rdbms.db.changelog-1.0.0.xml +++ b/layout-service/src/main/resources/changelog/layout-rdbms.db.changelog-1.0.0.xml @@ -33,6 +33,7 @@ + 9:7b685360fcf479666d97c994b2c67cde @@ -42,7 +43,7 @@ - + @@ -60,10 +61,11 @@ + 9:803cda2adae47ca04d390a7db367fb2c + type="VARCHAR(200)" /> @@ -202,6 +204,8 @@ + 9:319f59351930c8ed750241bf4f08312d + 9:22733f9d4ae5ae6eb65036797f2bd1d6 @@ -221,10 +225,10 @@ + type="VARCHAR(200)" /> + type="VARCHAR(200)" /> @@ -236,13 +240,15 @@ type="BIGINT" /> - + + 9:b7a8e59765dd5fd5f458dfe33c97ebf1 + 9:14c3b93fce77007fdfeb96ea9a64fa86 @@ -276,7 +282,7 @@ type="BIGINT" /> + type="VARCHAR(200)" /> @@ -285,10 +291,10 @@ type="LONGTEXT" /> + type="VARCHAR(200)" /> - + @@ -360,6 +366,7 @@ + 9:7ad73b7bea85f4710160a57231541d6e @@ -368,13 +375,14 @@ + type="VARCHAR(200)" /> + 9:2aec7bffb5bf8493a95fe6818b610469 @@ -383,7 +391,7 @@ + type="VARCHAR(2000)" /> @@ -460,6 +468,7 @@ + 9:39003ab78393a7f105eb0c9d8f0971d8 @@ -468,7 +477,7 @@ + type="VARCHAR(2000)" /> @@ -549,5 +558,11 @@ - - \ No newline at end of file + + + ALTER TABLE LAYOUT_PAGE_TEMPLATES CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci; + ALTER TABLE PORTAL_APP_CATEGORIES CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci; + ALTER TABLE PORTAL_APPLICATIONS CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci; + + +