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

fix enum drop bug as indicated by @mickhansen on irc

1 parent b5621722
Showing with 2 additions and 1 deletions
...@@ -308,7 +308,8 @@ module.exports = (function() { ...@@ -308,7 +308,8 @@ module.exports = (function() {
.success(function (results) { .success(function (results) {
results.forEach(function (result) { results.forEach(function (result) {
chainer.add(self.sequelize.query( chainer.add(self.sequelize.query(
self.QueryGenerator.pgEnumDrop(null, null, result.enum_name), self.QueryGenerator.pgEnumDrop(null, null, self.QueryGenerator.pgEscapeAndQuote(result.enum_name)),
// self.QueryGenerator.pgEnumDrop(null, null, result.enum_name),
null, null,
{logging: options.logging, raw: true} {logging: options.logging, raw: true}
)) ))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!