* Remove an already existing index from a table * * @param {string} tableName Table name to drop index from * @param {string|string[]} indexNameOrAttributes Index name or list of attributes that in the index * @param {object} [options] Query options
(tableName, indexNameOrAttributes, options)
| 667 | * @returns {Promise} |
| 668 | */ |
| 669 | async removeIndex(tableName, indexNameOrAttributes, options) { |
| 670 | options = options || {}; |
| 671 | const sql = this.queryGenerator.removeIndexQuery(tableName, indexNameOrAttributes, options); |
| 672 | return await this.sequelize.query(sql, options); |
| 673 | } |
| 674 | |
| 675 | /** |
| 676 | * Add a constraint to a table |