Commit a99d3ab611da2e0d439bced7c291124b4eed91e5
1 parent
a91f66100b
Exists in
master
agrego campos
Showing
1 changed file
with
14 additions
and
6 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.table('PMOVFACT', table => { | 3 | return knex.schema |
| 4 | table.integer('cantidadRecibida'); | 4 | .table('PMOVFACT', table => { |
| 5 | }); | 5 | table.integer('cantidadRecibida'); |
| 6 | }) | ||
| 7 | .table('PMAEFACT', table => { | ||
| 8 | table.string('origen'); | ||
| 9 | }); | ||
| 6 | }; | 10 | }; |
| 7 | 11 | ||
| 8 | exports.down = function(knex) { | 12 | exports.down = function(knex) { |
| 9 | return knex.schema.table('PMOVFACT', table => { | 13 | return knex.schema |
| 10 | table.dropColumn('cantidadRecibida'); | 14 | .table('PMOVFACT', table => { |
| 11 | }); | 15 | table.dropColumn('cantidadRecibida'); |
| 16 | }) | ||
| 17 | .table('PMAEFACT', table => { | ||
| 18 | table.dropColumn('origen'); | ||
| 19 | }); | ||
| 12 | }; | 20 | }; |
| 13 | 21 |