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

Commit 1b593a74 by sdepold

fixed logic

1 parent f3910991
Showing with 1 additions and 1 deletions
......@@ -210,7 +210,7 @@ module.exports = (function() {
var sql = "DROP INDEX <%= indexName %> ON <%= tableName %>"
, indexName = indexNameOrAttributes
if(typeof indexName == 'string')
if(typeof indexName != 'string')
indexName = Utils._.underscored(tableName + '_' + indexNameOrAttributes.join('_'))
return Utils._.template(sql)({ tableName: tableName, indexName: indexName })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!