diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 00:15:13 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-29 00:15:13 +0200 |
| commit | a77ddf4bf8ad8aeb91e2109a7c4a92149928b57b (patch) | |
| tree | bed9a31e1febb3824d4d273bd4821ab28449f82a /migrations/20170628233613_createFiles.js | |
| parent | bdab187f3d385a6b96c24135679af468d1e7892b (diff) | |
adding migrations!!
Diffstat (limited to 'migrations/20170628233613_createFiles.js')
| -rw-r--r-- | migrations/20170628233613_createFiles.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/migrations/20170628233613_createFiles.js b/migrations/20170628233613_createFiles.js new file mode 100644 index 0000000..bb2da3c --- /dev/null +++ b/migrations/20170628233613_createFiles.js @@ -0,0 +1,28 @@ + +exports.up = function(knex, Promise) { + return knex.schema.createTable('files', function (table) { + table.increments() + table.integer('folder_id') + table.string('username') + table.string('name') + table.string('url') + table.string('mime') + table.string('type') + table.float('duration') + table.text('analysis') + table.integer('size') + table.string('activity') + table.string('module') + table.string('checkpoint') + table.string('dataset') + table.string('epoch') + table.json('opt') + table.boolean('processed') + table.boolean('generated') + table.timestamps() + }) +}; + +exports.down = function(knex, Promise) { + return knex.schema.dropTable('files') +}; |
