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

Commit 08835afb by Indra Gunawan

Update query-generator.js

Added CREATE INDEX **IF NOT EXISTS**
1 parent 194a42c2
Showing with 1 additions and 1 deletions
...@@ -377,7 +377,7 @@ module.exports = (function() { ...@@ -377,7 +377,7 @@ module.exports = (function() {
}, options || {}) }, options || {})
return Utils._.compact([ return Utils._.compact([
"CREATE", options.indicesType, "INDEX", options.indexName, "CREATE", options.indicesType, "INDEX IF NOT EXISTS", options.indexName,
(options.indexType ? ('USING ' + options.indexType) : undefined), (options.indexType ? ('USING ' + options.indexType) : undefined),
"ON", tableName, '(' + transformedAttributes.join(', ') + ')', "ON", tableName, '(' + transformedAttributes.join(', ') + ')',
(options.parser ? "WITH PARSER " + options.parser : undefined) (options.parser ? "WITH PARSER " + options.parser : undefined)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!