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

Commit b5288620 by Mick Hansen

bc + jshint

1 parent cc65070d
......@@ -471,6 +471,12 @@ module.exports = (function() {
if (options.indexName) {
options.name = options.indexName;
}
if (options.indicesType) {
options.type = options.indicesType;
}
if (options.indexType || options.method) {
options.using = options.indexType || options.method;
}
options.prefix = options.prefix || rawTablename || tableName;
......@@ -533,10 +539,6 @@ module.exports = (function() {
delete options.type;
}
if (options.indexType || options.method) {
options.using = options.indexType || options.method;
}
return Utils._.compact([
'CREATE',
options.unique ? 'UNIQUE' : '',
......
......@@ -3,13 +3,11 @@
/* jshint -W030 */
/* jshint -W110 */
var chai = require('chai')
, sinon = require('sinon')
, Sequelize = require('../../../index')
, Promise = Sequelize.Promise
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + '/../../../lib/data-types')
, config = require(__dirname + '/../../config/config')
, current = Support.sequelize;
chai.config.includeStack = true;
......@@ -161,5 +159,5 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
});
});
};
}
});
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!