Skip to content

Commit

Permalink
fix(db): wrong reference to connect causes db:create to fail
Browse files Browse the repository at this point in the history
Fixes #520
  • Loading branch information
wzrdtales committed Nov 27, 2017
1 parent 95ede5a commit 56cb75a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/commands/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var log = require('db-migrate-shared').log;
var assert = require('assert');

function executeDB (internals, config, callback) {
var index = require('./connect');
var index = require('../../connect');

if (internals.argv._.length > 0) {
internals.argv.dbname = internals.argv._.shift().toString();
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var path = require('path');
var _assert = require('./helper/assert');

function executeSeed (internals, config, callback) {
var index = require('./connect');
var Seeder = require('./lib/seeder.js');
var index = require('../../connect');
var Seeder = require('../seeder.js');

if (internals.argv._.length > 0) {
internals.argv.destination = internals.argv._.shift().toString();
Expand Down

0 comments on commit 56cb75a

Please sign in to comment.