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

Commit d6c5ff05 by Andrej Mihajlov

Fix invalid "USING" order in Postgres query generator

1 parent 631616c1
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!