Download spectrum/api/migrations/20180209015734-github-provider-id-index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20180209015734-github-provider-id-index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/migrations/20180209015734-github-provider-id-index.js
-
curl -L -o 20180209015734-github-provider-id-index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/20180209015734-github-provider-id-index.js
274 Bytes
| exports.up = function(r, conn) { | |
| return Promise.all([ | |
| r | |
| .table('users') | |
| .indexCreate('githubProviderId') | |
| .run(conn), | |
| ]).catch(err => { | |
| console.log(err); | |
| throw err; | |
| }); | |
| }; | |
| exports.down = function(r, conn) { | |
| return Promise.resolve(); | |
| }; | |