From d9a15ffda38158d19c87f34d67c5f3805c59b1b2 Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 15 Jan 2025 14:23:24 +0100 Subject: [PATCH] feat: refs #7314 First commit --- db/dump/fixtures.before.sql | 8 ++++---- db/versions/11409-crimsonRaphis/00-firstScript.sql | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 db/versions/11409-crimsonRaphis/00-firstScript.sql diff --git a/db/dump/fixtures.before.sql b/db/dump/fixtures.before.sql index ff896b84d..515209219 100644 --- a/db/dump/fixtures.before.sql +++ b/db/dump/fixtures.before.sql @@ -3191,10 +3191,10 @@ INSERT INTO vn.entryType (code,description,isInformal) ('return','Return',0), ('transport','Delivery',0); -INSERT INTO `vn`.`cmr` (id,truckPlate,observations,senderInstruccions,paymentInstruccions,specialAgreements,companyFk,addressToFk,addressFromFk,supplierFk,packagesList,merchandiseDetail,state) - VALUES (1,'123456A','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',442,1,2,1,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet'), - (2,'123456N','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',69,3,4,2,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet'), - (3,'123456B','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',567,5,6,69,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet'); +INSERT INTO `vn`.`cmr` (id,truckPlate,observations,senderInstruccions,paymentInstruccions,specialAgreements,companyFk,addressToFk,addressFromFk,supplierFk,packagesList,state,marks,merchandiseNature,statisticalNumber,`weight`,volume) + VALUES (1,'123456A','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',442,1,2,1,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet', 5000, 20), + (2,'123456N','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',69,3,4,2,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet', 3000, 30), + (3,'123456B','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet',567,5,6,69,'Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet','Lorem ipsum dolor sit amet', 7000, 700); UPDATE vn.department SET workerFk = null; diff --git a/db/versions/11409-crimsonRaphis/00-firstScript.sql b/db/versions/11409-crimsonRaphis/00-firstScript.sql new file mode 100644 index 000000000..2bacad188 --- /dev/null +++ b/db/versions/11409-crimsonRaphis/00-firstScript.sql @@ -0,0 +1,7 @@ +ALTER TABLE vn.cmr + ADD marks varchar(255) DEFAULT NULL NULL AFTER `state`, + ADD merchandiseNature varchar(255) DEFAULT NULL NULL AFTER marks, + ADD statisticalNumber varchar(255) DEFAULT NULL NULL AFTER merchandiseNature, + ADD `weight` decimal(10,2) DEFAULT NULL NULL AFTER statisticalNumber, + ADD volume decimal(10,6) DEFAULT NULL NULL AFTER `weight`, + DROP COLUMN merchandiseDetail;