(tableName, indexNameOrAttributes)
| 553 | } |
| 554 | |
| 555 | removeIndexQuery(tableName, indexNameOrAttributes) { |
| 556 | const sql = class="st">'DROP INDEX <%= indexName %>'; |
| 557 | let indexName = indexNameOrAttributes; |
| 558 | |
| 559 | if (typeof indexName !== class="st">'string') { |
| 560 | indexName = Utils.underscore(`${tableName}_${indexNameOrAttributes.join(class="st">'_')}`); |
| 561 | } |
| 562 | |
| 563 | const values = { |
| 564 | tableName: this.quoteIdentifiers(tableName), |
| 565 | indexName: this.quoteIdentifiers(indexName) |
| 566 | }; |
| 567 | |
| 568 | return _.template(sql, this._templateSettings)(values); |
| 569 | } |
| 570 | |
| 571 | attributeToSQL(attribute, options) { |
| 572 | if (!_.isPlainObject(attribute)) { |
no test coverage detected