From cd51297db5f94401d9e4322ef36e924bef7849e7 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 19 May 2022 19:51:56 +0200 Subject: [PATCH] fix: Database Connection Charset to utf8mb4_unicode_ci --- backend/src/typeorm/connection.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/typeorm/connection.ts b/backend/src/typeorm/connection.ts index 745b2da94..d08d935d4 100644 --- a/backend/src/typeorm/connection.ts +++ b/backend/src/typeorm/connection.ts @@ -20,6 +20,9 @@ const connection = async (): Promise => { logger: new FileLogger('all', { logPath: CONFIG.TYPEORM_LOGGING_RELATIVE_PATH, }), + extra: { + charset: 'utf8mb4_unicode_ci', + }, }) } catch (error) { // eslint-disable-next-line no-console