20190626112130_v0.0.1.js
903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
exports.up = function(knex, Promise) {
return Promise.all([
knex.schema
.createTable('planex_transacciones', function(table) {
table.increments();
table.string('archivoRecibido', 1024);
table.string('archivoEnviado', 1024);
// 0: insertado, 1 enviado
table.integer('estado');
table.string('apies');
table.string('GLN');
})
.table('PMAEFACT_TEMP', function(table) {
table.string('GLN');
table.bigInteger('idTransaccion');
})
.table('PMOVFACT_TEMP', function(table) {
table.string('GLN');
table.bigInteger('codigoBarras');
})
]);
};
exports.down = function(knex, Promise) {
return Promise.all([
knex.schema
.dropTable('planex_transacciones')
.table('PMAEFACT_TEMP', function(table) {
table.dropColumns('GLN', 'idTransaccion');
})
]);
};