不要怂,就是干,撸起袖子干!

Commit b22255c1 by sdepold

added logic for showing all indexes of a table

1 parent 1ca53a32
Showing with 3 additions and 2 deletions
...@@ -152,8 +152,9 @@ module.exports = (function() { ...@@ -152,8 +152,9 @@ module.exports = (function() {
return queryAndEmit.call(this, sql, 'addIndex') return queryAndEmit.call(this, sql, 'addIndex')
} }
QueryInterface.prototype.showIndexes = function() { QueryInterface.prototype.showIndex = function() {
var sql = this.QueryGenerator.showIndexQuery(tableName, options)
return queryAndEmit.call(this, sql, 'showIndex')
} }
QueryInterface.prototype.removeIndex = function() { QueryInterface.prototype.removeIndex = function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!