summaryrefslogtreecommitdiff
path: root/migrations/20170628234104_createTasks.js
blob: 8f6430a786e0e76a2c36f90c4feea92b457d733d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
exports.up = function(knex, Promise) {
  return knex.schema.createTable('tasks', function (table) {
    table.increments()
    table.string('username')
    table.boolean('completed')
    table.boolean('processing')
    table.string('status')
    table.string('activity')
    table.string('module')
    table.string('checkpoint')
    table.string('dataset')
    table.integer('folder_id')
    table.integer('file_id')
    table.integer('output_file_id')
    table.string('opt')
    table.string('epoch')
    table.string('epochs')
    table.text('stdout')
    table.text('stderr')
    table.timestamps()
  })
};

exports.down = function(knex, Promise) {
  return knex.schema.dropTable('tasks')
};