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

Commit 1ddcdb06 by Jan Aagaard Meier

Merge pull request #1114 from pronebird/master

Fix invalid "USING" order in Postgres query generator
2 parents c6d74e46 d6c5ff05
Showing with 2 additions and 2 deletions
......@@ -435,8 +435,8 @@ module.exports = (function() {
return Utils._.compact([
"CREATE", options.indicesType, "INDEX", this.quoteIdentifiers(options.indexName),
(options.indexType ? ('USING ' + options.indexType) : undefined),
"ON", this.quoteIdentifiers(tableName), '(' + transformedAttributes.join(', ') + ')'
"ON", this.quoteIdentifiers(tableName), (options.indexType ? ('USING ' + options.indexType) : undefined),
'(' + transformedAttributes.join(', ') + ')'
]).join(' ')
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!