From a7bab3b2190833282dd2b5d05d251cc35145ff05 Mon Sep 17 00:00:00 2001 From: Marcelo Aiello Date: Thu, 3 Oct 2019 12:48:26 -0300 Subject: [PATCH] v0.14.2 --- knexfile.ejemplo.js | 14 ------------ migrations/20191003120035_v0.14.2.js | 15 ++++++++++++ package.json | 44 ++++++++++++++++++------------------ 3 files changed, 37 insertions(+), 36 deletions(-) delete mode 100644 knexfile.ejemplo.js create mode 100644 migrations/20191003120035_v0.14.2.js diff --git a/knexfile.ejemplo.js b/knexfile.ejemplo.js deleted file mode 100644 index a7b5ebd..0000000 --- a/knexfile.ejemplo.js +++ /dev/null @@ -1,14 +0,0 @@ -// Update with your config settings. - -module.exports = { - - estacion: { - client: 'msslq', - connection: { - host: 'iphost', - database: 'my_db', - user: 'username', - password: 'password' - } - } -}; diff --git a/migrations/20191003120035_v0.14.2.js b/migrations/20191003120035_v0.14.2.js new file mode 100644 index 0000000..342c4ce --- /dev/null +++ b/migrations/20191003120035_v0.14.2.js @@ -0,0 +1,15 @@ +exports.up = function(knex) { + return knex.schema + .createTable('orden_carga', function(table) { + table.increments(); + table.bigInteger('idHojaRuta'); + table.bigInteger('idCisterna'); + table.decimal('cantidadACargar', 12, 2); + table.integer('estado'); + }) +}; + +exports.down = function(knex) { + return knex.schema + .dropTable('orden_carga') +}; \ No newline at end of file diff --git a/package.json b/package.json index 25e9af1..9af9ea4 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,23 @@ { - "name": "backoffice", - "version": "1.0.0", - "description": "Paquetes de migraciones", - "main": "knexfile.js", - "dependencies": { - "bluebird": "^3.5.5", - "knex": "^0.18.3", - "md5": "^2.2.1", - "mssql": "^5.1.0" - }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "init": "npm install -g knex && npm install && knex init" - }, - "repository": { - "type": "git", - "url": "http://git.focasoftware.com/deploy/backoffice.git" - }, - "author": "Foca Software", - "license": "ISC" -} + "name": "backoffice", + "version": "1.0.0", + "description": "Paquetes de migraciones", + "main": "knexfile.js", + "dependencies": { + "bluebird": "^3.5.5", + "knex": "^0.18.3", + "md5": "^2.2.1", + "mssql": "^5.1.0" + }, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "init": "npm install -g knex && npm install && knex init" + }, + "repository": { + "type": "git", + "url": "http://git.focasoftware.com/deploy/backoffice.git" + }, + "author": "Foca Software", + "license": "ISC" +} \ No newline at end of file -- 1.9.1