不要怂,就是干,撸起袖子干!

Commit ffe8ae10 by tvoronov

Fixed paths.

1 parent f970157b
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
var fs = require('fs') var fs = require('fs')
, moment = require('moment'); , moment = require('moment');
var Utils = require(__dirname + '/utils') var Utils = require('./utils')
, Migration = require(__dirname + '/migration') , Migration = require('./migration')
, DataTypes = require(__dirname + '/data-types'); , DataTypes = require('./data-types');
module.exports = (function() { module.exports = (function() {
var Migrator = function(sequelize, options) { var Migrator = function(sequelize, options) {
this.sequelize = sequelize; this.sequelize = sequelize;
this.options = Utils._.extend({ this.options = Utils._.extend({
path: __dirname + '/../migrations', path: './../migrations',
from: null, from: null,
to: null, to: null,
logging: this.sequelize.log.bind(this.sequelize), logging: this.sequelize.log.bind(this.sequelize),
...@@ -374,4 +374,4 @@ module.exports = (function() { ...@@ -374,4 +374,4 @@ module.exports = (function() {
}; };
return Migrator; return Migrator;
})(); })();
\ No newline at end of file
'use strict'; 'use strict';
var Utils = require(__dirname + '/utils') var Utils = require('./utils')
, deprecatedSeen = {} , deprecatedSeen = {}
, deprecated = function(message) { , deprecated = function(message) {
if (deprecatedSeen[message]) return; if (deprecatedSeen[message]) return;
......
'use strict'; 'use strict';
var Utils = require(__dirname + '/utils') var Utils = require('./utils')
, _ = require('lodash') , _ = require('lodash')
, DataTypes = require(__dirname + '/data-types') , DataTypes = require('./data-types')
, SQLiteQueryInterface = require(__dirname + '/dialects/sqlite/query-interface') , SQLiteQueryInterface = require('./dialects/sqlite/query-interface')
, Transaction = require(__dirname + '/transaction') , Transaction = require('./transaction')
, Promise = require(__dirname + '/promise') , Promise = require('./promise')
, QueryTypes = require('./query-types'); , QueryTypes = require('./query-types');
module.exports = (function() { module.exports = (function() {
......
...@@ -670,6 +670,6 @@ Utils.fn.prototype._isSequelizeMethod = ...@@ -670,6 +670,6 @@ Utils.fn.prototype._isSequelizeMethod =
Utils.col.prototype._isSequelizeMethod = Utils.col.prototype._isSequelizeMethod =
Utils.json.prototype._isSequelizeMethod = true; Utils.json.prototype._isSequelizeMethod = true;
Utils.CustomEventEmitter = require(__dirname + '/emitters/custom-event-emitter'); Utils.CustomEventEmitter = require('./emitters/custom-event-emitter');
Utils.Promise = require(__dirname + '/promise'); Utils.Promise = require('./promise');
Utils.QueryChainer = require(__dirname + '/query-chainer'); Utils.QueryChainer = require('./query-chainer');
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!