Skip to content
Snippets Groups Projects
Commit 4864f82c authored by Taico Aerts's avatar Taico Aerts
Browse files

Add utf8mb4 default charset

parent 8d101b6a
Branches dev
No related tags found
No related merge requests found
Pipeline #1288584 failed
......@@ -5,7 +5,8 @@
"port": 3306,
"username": "peer",
"password": "password",
"database": "peer"
"database": "peer",
"charset": "utf8mb4"
},
"session": {
"secret": "add something random here",
......
......@@ -11,6 +11,7 @@ const databaseConfig: {
username: string;
password: string;
database: string;
charset: string;
connectionUrl?: string;
} = config.get("database");
......@@ -68,6 +69,7 @@ switch (databaseConfig.type) {
username: databaseConfig.username,
password: databaseConfig.password,
database: databaseConfig.database,
charset: databaseConfig.charset,
extra: {
connectionLimit: process.env.NODE_ENV === "production" ? 50 : 10,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment