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

Method removeIndex

lib/dialects/abstract/query-interface.js:646–650  ·  lib/dialects/abstract/query-interface.js::QueryInterface.removeIndex

* 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

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

Callers 3

testFunction · 0.80

Calls 2

removeIndexQueryMethod · 0.45
queryMethod · 0.45

Tested by 1

testFunction · 0.64