exports.up = function(knex, Promise) { return Promise.all([ knex.schema .raw("ALTER TABLE ADETREC ADD id INT IDENTITY(1,1)") .table('ADETREC', function(table) { table.bigInteger('idArecibos'); }) ]); }; exports.down = function(knex, Promise) { return Promise.all([ knex.schema .table('ADETREC', function(table) { table.dropColumns('id', 'idArecibos'); }) ]); };