summaryrefslogtreecommitdiff
path: root/migrations/20170628234104_createTasks.js
blob: 4c0e52639e9800ee2a0adca9f2bc07e7f1a5e630 (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('tool')
    table.integer('content_file_id')
    table.integer('style_file_id')
    table.integer('output_file_id')
    table.string('alpha')
    table.string('iterations')
    table.timestamps()
  })
};

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