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

Commit 612d23b3 by Victor Zeng Committed by Mick Hansen

creating a branch to do partial index with sequelize migration

1 parent e7f3b195
...@@ -548,7 +548,8 @@ module.exports = (function() { ...@@ -548,7 +548,8 @@ module.exports = (function() {
'ON', this.quoteIdentifiers(tableName), 'ON', this.quoteIdentifiers(tableName),
this._dialect.supports.index.using === 2 && options.using ? 'USING ' + options.using : '', this._dialect.supports.index.using === 2 && options.using ? 'USING ' + options.using : '',
'(' + fieldsSql.join(', ') + (options.operator ? ' '+options.operator : '') + ')', '(' + fieldsSql.join(', ') + (options.operator ? ' '+options.operator : '') + ')',
(this._dialect.supports.index.parser && options.parser ? 'WITH PARSER ' + options.parser : undefined) (this._dialect.supports.index.parser && options.parser ? 'WITH PARSER ' + options.parser : undefined),
(this._dialect.supports.index.where && options.where ? 'WHERE ' + Utils.smartWhere(options.where) : undefined)
]).join(' '); ]).join(' ');
}, },
......
...@@ -37,6 +37,7 @@ PostgresDialect.prototype.supports = _.merge(_.cloneDeep(Abstract.prototype.supp ...@@ -37,6 +37,7 @@ PostgresDialect.prototype.supports = _.merge(_.cloneDeep(Abstract.prototype.supp
index: { index: {
concurrently: true, concurrently: true,
using: 2, using: 2,
where: true
}, },
JSON: true, JSON: true,
JSONB: true JSONB: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!