Commit 37267e8d60d834533a43e6a5bb21cf54a831ab1b

Authored by Eric Fernandez
1 parent a99d3ab611
Exists in master

origin in pmaeffact_temp

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
migrations/20190808123821_v0.14.0.js
1 1
2 exports.up = function(knex) { 2 exports.up = function(knex) {
3 return knex.schema 3 return knex.schema
4 .table('PMOVFACT', table => { 4 .table('PMOVFACT', table => {
5 table.integer('cantidadRecibida'); 5 table.integer('cantidadRecibida');
6 }) 6 })
7 .table('PMAEFACT', table => { 7 .table('PMAEFACT', table => {
8 table.string('origen'); 8 table.string('origen');
9 })
10 .table('PMAEFACT_TEMP', table => {
11 table.string('origen');
9 }); 12 });
10 }; 13 };
11 14
12 exports.down = function(knex) { 15 exports.down = function(knex) {
13 return knex.schema 16 return knex.schema
14 .table('PMOVFACT', table => { 17 .table('PMOVFACT', table => {
15 table.dropColumn('cantidadRecibida'); 18 table.dropColumn('cantidadRecibida');
16 }) 19 })
17 .table('PMAEFACT', table => { 20 .table('PMAEFACT', table => {
18 table.dropColumn('origen'); 21 table.dropColumn('origen');
22 })
23 .table('PMAEFACT_TEMP', table => {
24 table.dropColumn('origen');
19 }); 25 });
20 }; 26 };
21 27