(tableName, indexNameOrAttributes)
| 563 | } |
| 564 | |
| 565 | removeIndexQuery(tableName, indexNameOrAttributes) { |
| 566 | const sql = 'DROP INDEX <%= indexName %>'; |
| 567 | let indexName = indexNameOrAttributes; |
| 568 | |
| 569 | if (typeof indexName !== 'string') { |
| 570 | indexName = Utils.underscore(`${tableName}_${indexNameOrAttributes.join('_')}`); |
| 571 | } |
| 572 | |
| 573 | const values = { |
| 574 | tableName: this.quoteIdentifiers(tableName), |
| 575 | indexName: this.quoteIdentifiers(indexName) |
| 576 | }; |
| 577 | |
| 578 | return _.template(sql, this._templateSettings)(values); |
| 579 | } |
| 580 | |
| 581 | attributeToSQL(attribute, options) { |
| 582 | if (!_.isPlainObject(attribute)) { |
no test coverage detected