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') };