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

Commit fddc9e9c by Bulkan Evcimen

use triple equals

1 parent cc054e94
...@@ -156,7 +156,7 @@ var QueryInterface = module.exports = { ...@@ -156,7 +156,7 @@ var QueryInterface = module.exports = {
tableNames.forEach(function(tableName) { tableNames.forEach(function(tableName) {
// if tableName is not in the Array of tables names then dont drop it // if tableName is not in the Array of tables names then dont drop it
if (skip.indexOf(tableName) == -1) { if (skip.indexOf(tableName) === -1) {
queries.push(self.QueryGenerator.dropTableQuery(tableName).replace(';', '')) queries.push(self.QueryGenerator.dropTableQuery(tableName).replace(';', ''))
} }
}) })
......
...@@ -269,7 +269,7 @@ module.exports = (function() { ...@@ -269,7 +269,7 @@ module.exports = (function() {
// add the table removal query to the chainer // add the table removal query to the chainer
tableNames.forEach(function(tableName) { tableNames.forEach(function(tableName) {
// if tableName is not in the Array of tables names then dont drop it // if tableName is not in the Array of tables names then dont drop it
if (skip.indexOf(tableName) == -1) { if (skip.indexOf(tableName) === -1) {
chainer.add(self, 'dropTable', [ tableName, { cascade: true } ]) chainer.add(self, 'dropTable', [ tableName, { cascade: true } ])
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!