parent
aed115a64b
commit
12e8e39023
1 changed files with 9 additions and 0 deletions
|
@ -17,6 +17,15 @@ const knex = require('knex')({
|
|||
'DATETIME'
|
||||
]
|
||||
},
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 10,
|
||||
afterCreate: function(conn, cb) {
|
||||
conn.query('SET sql_mode="ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";', function (err) {
|
||||
cb(err, conn);
|
||||
});
|
||||
}
|
||||
},
|
||||
migrations: {
|
||||
directory: path.join(__dirname, '..', 'setup', 'knex', 'migrations')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue