From 21845a80eef81cfaa55a55492c117934f34b380f Mon Sep 17 00:00:00 2001 From: Roberta Miccoli <85555840+rmiccoli@users.noreply.github.com> Date: Mon, 11 Mar 2024 22:39:34 +0100 Subject: [PATCH] Allow Chinese characters to be shown on user's info column (#701) In order to support also Chinese characters, charset and collation of info_val column in saved_user_auth_info table have been moved from latin1 to utf8 aligning them to the table values. --- .../db/migration/h2/V100__alter_saved_user_auth_info_table.sql | 1 + .../migration/mysql/V100__alter_saved_user_auth_info_table.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 iam-persistence/src/main/resources/db/migration/h2/V100__alter_saved_user_auth_info_table.sql create mode 100644 iam-persistence/src/main/resources/db/migration/mysql/V100__alter_saved_user_auth_info_table.sql diff --git a/iam-persistence/src/main/resources/db/migration/h2/V100__alter_saved_user_auth_info_table.sql b/iam-persistence/src/main/resources/db/migration/h2/V100__alter_saved_user_auth_info_table.sql new file mode 100644 index 000000000..578c33a3a --- /dev/null +++ b/iam-persistence/src/main/resources/db/migration/h2/V100__alter_saved_user_auth_info_table.sql @@ -0,0 +1 @@ +-- Nothing to do because H2 already supports Unicode \ No newline at end of file diff --git a/iam-persistence/src/main/resources/db/migration/mysql/V100__alter_saved_user_auth_info_table.sql b/iam-persistence/src/main/resources/db/migration/mysql/V100__alter_saved_user_auth_info_table.sql new file mode 100644 index 000000000..e5b9613a1 --- /dev/null +++ b/iam-persistence/src/main/resources/db/migration/mysql/V100__alter_saved_user_auth_info_table.sql @@ -0,0 +1 @@ +ALTER TABLE saved_user_auth_info MODIFY info_val varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \ No newline at end of file