summaryrefslogtreecommitdiff
path: root/migrations/20170628234104_createTasks.js
blob: cf95e8d488ac5f5fdb123f4b6401da80859910b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
exports.up = function(knex, Promise) {
  return knex.schema.createTable('tasks', function (table) {
    table.increments()
    table.integer('job_id')
    table.string('username')
    table.boolean('completed')
    table.boolean('processing')
    table.string('tool')
    table.integer('content_file_id')
    table.integer('style_file_id')
    table.integer('output_file_id')
    table.string('alpha')
    table.string('iterations')
    table.text('stdout')
    table.text('stderr')
    table.timestamps()
  })
};

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