윤준석

HOTFIX: change charset and collate in database to utf8mb4 and utf8mb4_general_ci for korean

...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
6 "host": "mamuri-db", 6 "host": "mamuri-db",
7 "port": "3306", 7 "port": "3306",
8 "dialect": "mysql", 8 "dialect": "mysql",
9 - "charset": "utf8", 9 + "define": {
10 - "collate": "utf8_general_ci" 10 + "charset": "utf8mb4",
11 + "collate": "utf8mb4_general_ci"
12 + }
11 }, 13 },
12 "test": { 14 "test": {
13 "username": "root", 15 "username": "root",
......
...@@ -11,7 +11,7 @@ module.exports = (sequelize, DataTypes) => { ...@@ -11,7 +11,7 @@ module.exports = (sequelize, DataTypes) => {
11 allowNull: false 11 allowNull: false
12 } 12 }
13 }, { 13 }, {
14 - charset: "utf8", 14 + charset: "utf8mb4",
15 - collate: "utf8_general_ci" 15 + collate: "utf8mb4_general_ci"
16 }) 16 })
17 } 17 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -11,7 +11,7 @@ module.exports = (sequelize, DataTypes) => { ...@@ -11,7 +11,7 @@ module.exports = (sequelize, DataTypes) => {
11 allowNull: false 11 allowNull: false
12 } 12 }
13 }, { 13 }, {
14 - charset: "utf8", 14 + charset: "utf8mb4",
15 - collate: "utf8_general_ci" 15 + collate: "utf8mb4_general_ci"
16 }) 16 })
17 } 17 }
...\ No newline at end of file ...\ No newline at end of file
......