UNPKG

mc-core

Version:
23 lines (16 loc) 531 B
'use strict' exports.up = function(knex, Promise) { return knex.schema.createTable('pipeline_variables', function(table) { table.increments() table.timestamp('created_at').nullable() table.timestamp('updated_at').nullable().defaultTo(knex.fn.now()) table.integer('pipeline_config_id') table.string('name') table.text('description') table.boolean('required') table.string('default_value') }) } exports.down = function(knex, Promise) { return knex.schema.dropTable('pipeline_variables') }