mc-core
Version:
Deployments made simple
26 lines (19 loc) • 744 B
JavaScript
'use strict'
exports.up = function(knex, Promise) {
return knex.schema.createTable('pipeline_executions', function(table) {
table.increments()
table.integer('pipeline_config_id')
table.string('pipeline_config_name')
table.integer('owner_id')
table.string('status') // Should be either "created", "queued", "running", "awaiting_confirmation", "failed", "succeeded"
table.timestamp('started_at').nullable()
table.timestamp('finished_at').nullable()
table.timestamp('created_at').nullable()
table.timestamp('updated_at').nullable()
table.text('initial_values')
table.text('config_snapshot')
})
}
exports.down = function(knex, Promise) {
return knex.schema.dropTable('pipeline_executions')
}