MCPcopy
hub / github.com/sequelize/sequelize / removeIndex

Method removeIndex

src/dialects/abstract/query-interface.js:669–673  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 3

testFunction · 0.80

Calls 2

removeIndexQueryMethod · 0.45
queryMethod · 0.45

Tested by 1

testFunction · 0.64