WiP on namespaces and users
This commit is contained in:
parent
432e6ffaeb
commit
1b73282e90
18 changed files with 513 additions and 0 deletions
15
lib/knex.js
Normal file
15
lib/knex.js
Normal file
|
@ -0,0 +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;
|
Loading…
Add table
Add a link
Reference in a new issue