react-code-dataset / spectrum /api /migrations /20180309144845-create-community-settings-table.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
exports.up = function(r, conn) {
return r
.tableCreate('communitySettings')
.run(conn)
.then(() =>
r
.table('communitySettings')
.indexCreate('communityId', r.row('communityId'))
.run(conn)
)
.catch(err => {
console.log(err);
throw err;
});
};
exports.down = function(r, conn) {
return Promise.all([r.tableDrop('communitySettings').run(conn)]);
};