Some bits for ReactJS-based client.
This commit is contained in:
parent
115d254baf
commit
4f52b571c9
27 changed files with 2326 additions and 202 deletions
30
lib/knex.js
30
lib/knex.js
|
@ -1,15 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
const config = require('config');
|
||||
|
||||
const knex = require('knex')({
|
||||
client: 'mysql',
|
||||
connection: config.mysql,
|
||||
migrations: {
|
||||
directory: __dirname + '/../setup/knex/migrations'
|
||||
}
|
||||
});
|
||||
|
||||
knex.migrate.latest();
|
||||
|
||||
module.exports = knex;
|
||||
'use strict';
|
||||
|
||||
const config = require('config');
|
||||
|
||||
const knex = require('knex')({
|
||||
client: 'mysql',
|
||||
connection: config.mysql,
|
||||
migrations: {
|
||||
directory: __dirname + '/../setup/knex/migrations'
|
||||
}
|
||||
});
|
||||
|
||||
knex.migrate.latest();
|
||||
|
||||
module.exports = knex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue