summaryrefslogtreecommitdiff
path: root/migrations/20170628234104_createTasks.js
blob: ecb679667f51544499498a933da1b40dbb0f3af4 (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
28
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('dataset_id')
    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')
};