react-code-dataset / spectrum /api /migrations /20180214111357-expo-push-subscriptions.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
exports.up = function(r, conn) {
return r
.tableCreate('expoPushSubscriptions')
.run(conn)
.then(() =>
r
.table('expoPushSubscriptions')
.indexCreate('userId')
.run(conn)
)
.then(() =>
r
.table('expoPushSubscriptions')
.indexCreate('token')
.run(conn)
)
.catch(err => {
throw new Error(err);
});
};
exports.down = function(r, conn) {
return r
.tableDrop('expoPushSubscriptions')
.run(conn)
.catch(err => {
throw new Error(err);
});
};