This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = { | |
up: (queryInterface, Sequelize) => { | |
return queryInterface.addIndex('Parties', { | |
fields: [Sequelize.literal('name gin_trgm_ops')], // <-- name = field name, gin_trgm_ops comes after the field name | |
using: 'gin', | |
indexName: 'party_name_gin_trgm_idx', // specify the index name manually otherwise sequelize will create party_ | |
unique: false, | |
}) |
OlderNewer