* 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)
| 644 | * @returns {Promise} |
| 645 | */ |
| 646 | async removeIndex(tableName, indexNameOrAttributes, options) { |
| 647 | options = options || {}; |
| 648 | const sql = this.queryGenerator.removeIndexQuery(tableName, indexNameOrAttributes); |
| 649 | return await this.sequelize.query(sql, options); |
| 650 | } |
| 651 | |
| 652 | /** |
| 653 | * Add a constraint to a table |