react-code-dataset / spectrum /api /migrations /20170915201609-clean-up-bad-dm-data.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
exports.up = function(r, conn) {
return Promise.all([
r
.table('messages')
.filter({ threadType: 'DIRECT_MESSAGE_GROUP' })
.update({
threadType: 'directMessageThread',
})
.run(conn),
r
.table('messages')
.filter({ threadType: 'STORY' })
.update({
threadType: 'story',
})
.run(conn),
]);
};
exports.down = function(r, conn) {
return Promise.resolve();
};