Fixing broken knex_init reference

This commit is contained in:
Hannah Wolfe 2013-05-19 20:17:21 +01:00
parent e331307e58
commit 2e28a1a8c2
3 changed files with 12 additions and 4 deletions

View File

@ -5,7 +5,7 @@
var when = require('when'),
knex = require('./knex_init'),
knex = require('../../models/knex_init'),
fixtures = require('../fixtures/001'),
up,
down;

View File

@ -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;

View 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;
}());