summaryrefslogtreecommitdiff
path: root/migrations/20170628234104_createTasks.js
blob: acb24404844d4e759676d474e3181ddc58fabc89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.string('command')
    table.integer('content_file_id')
    table.integer('style_file_id')
    table.integer('result_file_id')
    table.string('alpha')
    table.string('iterations')
    table.timestamps()
  })
};

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