Download server/migrations/20191203151746_create-file-codes.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/migrations/20191203151746_create-file-codes.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/migrations/20191203151746_create-file-codes.js
-
curl -L -o 20191203151746_create-file-codes.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/migrations/20191203151746_create-file-codes.js
358 Bytes
| import { addDefaultColumns } from '../src/dbUtil'; | |
| exports.up = async function(knex) { | |
| await knex.schema.createTable('file_codes', table => { | |
| table.increments(); | |
| table.string('code'); | |
| table.string('expire_at'); | |
| addDefaultColumns(knex, table); | |
| }); | |
| }; | |
| exports.down = async function(knex) { | |
| await knex.schema.dropTable('file_codes'); | |
| }; | |