Download spectrum/api/migrations/20180214111357-expo-push-subscriptions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20180214111357-expo-push-subscriptions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/migrations/20180214111357-expo-push-subscriptions.js
-
curl -L -o 20180214111357-expo-push-subscriptions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20180214111357-expo-push-subscriptions.js
560 Bytes
| 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); | |
| }); | |
| }; | |