2017-05-28 16:49:00 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const config = require('config');
|
|
|
|
|
|
|
|
const knex = require('knex')({
|
2017-07-11 09:28:44 +00:00
|
|
|
client: 'mysql2',
|
2017-05-28 16:49:00 +00:00
|
|
|
connection: config.mysql,
|
|
|
|
migrations: {
|
|
|
|
directory: __dirname + '/../setup/knex/migrations'
|
|
|
|
}
|
2017-07-24 04:03:32 +00:00
|
|
|
// , debug: true
|
2017-05-28 16:49:00 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = knex;
|