exports.up = function(knex) { return knex.schema .table('seguimiento', function(table) { table.bigInteger('idVisita').unsigned(); }) .createTable('visita', function(table) { table.increments(); table.bigInteger('idCliente').unsigned(); table.bigInteger('idVisitante').unsigned(); }); }; exports.down = function(knex) { return knex.schema .table('seguimiento', function(table) { table.dropColumn('idVisita'); }) .dropTable('visita'); };