Fixing broken knex_init reference
This commit is contained in:
parent
e331307e58
commit
2e28a1a8c2
@ -5,7 +5,7 @@
|
||||
|
||||
|
||||
var when = require('when'),
|
||||
knex = require('./knex_init'),
|
||||
knex = require('../../models/knex_init'),
|
||||
fixtures = require('../fixtures/001'),
|
||||
up,
|
||||
down;
|
||||
|
@ -6,13 +6,11 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
var knex = require('knex'),
|
||||
var knex = require('./knex_init'),
|
||||
models = require('./models'),
|
||||
DataProvider,
|
||||
instance;
|
||||
|
||||
knex.Initialize(require('../../../config').database[process.env.NODE_ENV || 'development']);
|
||||
|
||||
DataProvider = function () {
|
||||
if (!instance) {
|
||||
instance = this;
|
||||
|
10
core/shared/models/knex_init.js
Normal file
10
core/shared/models/knex_init.js
Normal file
@ -0,0 +1,10 @@
|
||||
/*global require, module, process */
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
var knex = require('knex');
|
||||
|
||||
knex.Initialize(require('../../../config').database[process.env.NODE_ENV || 'development']);
|
||||
|
||||
module.exports = knex;
|
||||
}());
|
Loading…
Reference in New Issue
Block a user