Showing
3 changed files
with
9 additions
and
1 deletions
| ... | @@ -5,7 +5,9 @@ | ... | @@ -5,7 +5,9 @@ |
| 5 | "database": "mamuri_db", | 5 | "database": "mamuri_db", |
| 6 | "host": "mamuri-db", | 6 | "host": "mamuri-db", |
| 7 | "port": "3306", | 7 | "port": "3306", |
| 8 | - "dialect": "mysql" | 8 | + "dialect": "mysql", |
| 9 | + "charset": "utf8", | ||
| 10 | + "collate": "utf8_general_ci" | ||
| 9 | }, | 11 | }, |
| 10 | "test": { | 12 | "test": { |
| 11 | "username": "root", | 13 | "username": "root", | ... | ... |
| ... | @@ -10,5 +10,8 @@ module.exports = (sequelize, DataTypes) => { | ... | @@ -10,5 +10,8 @@ module.exports = (sequelize, DataTypes) => { |
| 10 | type: DataTypes.STRING, | 10 | type: DataTypes.STRING, |
| 11 | allowNull: false | 11 | allowNull: false |
| 12 | } | 12 | } |
| 13 | + }, { | ||
| 14 | + charset: "utf8", | ||
| 15 | + collate: "utf8_general_ci" | ||
| 13 | }) | 16 | }) |
| 14 | } | 17 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -10,5 +10,8 @@ module.exports = (sequelize, DataTypes) => { | ... | @@ -10,5 +10,8 @@ module.exports = (sequelize, DataTypes) => { |
| 10 | type: DataTypes.STRING, | 10 | type: DataTypes.STRING, |
| 11 | allowNull: false | 11 | allowNull: false |
| 12 | } | 12 | } |
| 13 | + }, { | ||
| 14 | + charset: "utf8", | ||
| 15 | + collate: "utf8_general_ci" | ||
| 13 | }) | 16 | }) |
| 14 | } | 17 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment