v0.0.6 utf8mb4
This commit is contained in:
parent
f9f099a48c
commit
ecc031d1ba
@ -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文件,在更改文件热重启的时候无需检查全部文件,仅检查改动文件,开发速度更快。
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user