Commit 2ea3df3ee537a7886f33582491e2e4685974b0c8
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !6
Showing
1 changed file
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 |