20190131161852_v0.6.20.js 487 Bytes
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');
            })
    ]);
};