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

Commit ffad08ff by Indra Gunawan

Update query-generator.js

Added DROP INDEX **IF EXISTS**
1 parent 194a42c2
Showing with 1 additions and 1 deletions
......@@ -378,7 +378,7 @@ module.exports = (function() {
},
removeIndexQuery: function(tableName, indexNameOrAttributes) {
var sql = "DROP INDEX <%= indexName %>"
var sql = "DROP INDEX IF EXISTS <%= indexName %>"
, indexName = indexNameOrAttributes
if (typeof indexName !== 'string') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!