v0.0.6 utf8mb4

This commit is contained in:
yi-ge 2017-02-17 21:18:58 +08:00
parent f9f099a48c
commit ecc031d1ba
2 changed files with 8 additions and 0 deletions

View File

@ -473,6 +473,8 @@ request.post('/api').form({key:'value'}), function(err,httpResponse,body){ /* ..
更新说明 更新说明
-------- --------
*v0.0.6 2017年02月17日21:17:23*
1、修改了src/lib/sequelize.js文件,添加了对utf8mb4的支持要求MySQL版本>5.5)。
*v0.0.5 2017年02月12日01:25:34* *v0.0.5 2017年02月12日01:25:34*
1、修改了gulpfile.js文件在更改文件热重启的时候无需检查全部文件仅检查改动文件开发速度更快。 1、修改了gulpfile.js文件在更改文件热重启的时候无需检查全部文件仅检查改动文件开发速度更快。

View File

@ -4,6 +4,12 @@ import { DB as DBConfig, System as SystemConfig } from '../config'
export default new Sequelize(DBConfig.database, DBConfig.username, DBConfig.password, { export default new Sequelize(DBConfig.database, DBConfig.username, DBConfig.password, {
host: DBConfig.host, host: DBConfig.host,
dialect: SystemConfig.db_type, dialect: SystemConfig.db_type,
dialectOptions: { //MySQL > 5.5,其它数据库删除此项
charset: 'utf8mb4',
collate: 'utf8mb4_unicode_520_ci',
supportBigNumbers: true,
bigNumberStrings: true
},
pool: { pool: {
max: 50, max: 50,
min: 0, min: 0,