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

You need to sign in or sign up before continuing.
Commit 5ad75762 by Sushant

fix(#5092): test fail when destroy JSONB data with where

1 parent ad124e3b
Showing with 32 additions and 0 deletions
...@@ -310,6 +310,38 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -310,6 +310,38 @@ describe(Support.getTestDialectTeaser('Model'), function() {
}); });
}); });
}); });
it('should be possible to destroy with where', function () {
return Promise.join(
this.Event.create({
data: {
name: {
first: 'Elliot',
last: 'Alderson'
},
employment: 'Hacker'
}
}),
this.Event.create({
data: {
name: {
first: 'Christian',
last: 'Slater'
},
employment: 'Hacker'
}
})
).bind(this).then(function () {
return this.Event.destroy({
where: {
data: {
employment : 'Hacker'
}
}
});
});
});
}); });
} }
}); });
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!