From 649fe41be3eca2d70d88408b0513da68dbac6d5b Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 30 Aug 2020 11:25:26 +0200 Subject: [PATCH] Mysql: set default charset to utf8mb4 on pools --- package.json | 2 +- src/db/MysqlConnectionManager.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 32a7453..195403f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wms-core", - "version": "0.21.0", + "version": "0.21.1", "description": "Node web application framework and toolbelt.", "repository": "https://gitlab.com/ArisuOngaku/wms-core", "author": "Alice Gaudon ", diff --git a/src/db/MysqlConnectionManager.ts b/src/db/MysqlConnectionManager.ts index ab8674f..014cbd4 100644 --- a/src/db/MysqlConnectionManager.ts +++ b/src/db/MysqlConnectionManager.ts @@ -80,6 +80,7 @@ export default class MysqlConnectionManager { user: config.get('mysql.user'), password: config.get('mysql.password'), database: config.get('mysql.database'), + charset: 'utf8mb4', }); }