From 3a9eb100a1f528ca183e8869a86041fe3ab9ddb4 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 30 Jan 2024 08:06:36 +0100 Subject: [PATCH] feat: refs #6371 table vn2008 to vn --- db/dump/fixtures.after.sql | 2 +- .../{01-Bancos_poliza.sql.sql => 01-Bancos_poliza.sql} | 0 .../{03-Entradas_orden.sql.sql => 03-Entradas_orden.sql} | 2 +- db/versions/10835-brownCarnation/32-definitivo.sql | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename db/versions/10835-brownCarnation/{01-Bancos_poliza.sql.sql => 01-Bancos_poliza.sql} (100%) rename db/versions/10835-brownCarnation/{03-Entradas_orden.sql.sql => 03-Entradas_orden.sql} (99%) diff --git a/db/dump/fixtures.after.sql b/db/dump/fixtures.after.sql index 57ccb8626..489234089 100644 --- a/db/dump/fixtures.after.sql +++ b/db/dump/fixtures.after.sql @@ -30,7 +30,7 @@ INSERT INTO vn.buy (id,entryFk,itemFk,quantity,dispatched,buyingValue,freightVal (18,10,15,500,0,55.0,1.0,0,1,1,1,0,0.0,1.0,'5',0.0,78.3,75.6,0.0,0,0,1,0,'2022-06-20 00:00:00',0,2.5), (19,10,11,5000,0,50.0,1.0,0,1,1,1,1,0.0,1.0,'4',0.0,99.6,99.4,0.0,0,0,1,0,'2022-06-20 00:00:00',0,2.5); */ -INSERT INTO vn2008.Splits (Id_Split,Id_Ticket,Id_Entrada,Fecha,Notas) +INSERT INTO vn.split (id,ticketFk,entryFk,dated,note) VALUES (1,7,2,'00-00-0000 00:00:00.000','nota1'), (2,10,6,'00-00-0000 00:00:00.000','nota2'), diff --git a/db/versions/10835-brownCarnation/01-Bancos_poliza.sql.sql b/db/versions/10835-brownCarnation/01-Bancos_poliza.sql similarity index 100% rename from db/versions/10835-brownCarnation/01-Bancos_poliza.sql.sql rename to db/versions/10835-brownCarnation/01-Bancos_poliza.sql diff --git a/db/versions/10835-brownCarnation/03-Entradas_orden.sql.sql b/db/versions/10835-brownCarnation/03-Entradas_orden.sql similarity index 99% rename from db/versions/10835-brownCarnation/03-Entradas_orden.sql.sql rename to db/versions/10835-brownCarnation/03-Entradas_orden.sql index 3c5cda6db..2f4429cda 100644 --- a/db/versions/10835-brownCarnation/03-Entradas_orden.sql.sql +++ b/db/versions/10835-brownCarnation/03-Entradas_orden.sql @@ -2,4 +2,4 @@ ALTER TABLE IF EXISTS `vn2008`.`Entradas_orden` RENAME `vn`.`entryOrder`; ALTER TABLE IF EXISTS `vn`.`entryOrder` CHANGE COLUMN IF EXISTS `Id_Entrada` `entryFk` int(11) NOT NULL, -CHANGE COLUMN IF EXISTS `orden` `order` int(11) NOT NULL DEFAULT 1 COMMENT '1.- Ordenar por articulo\n2.- Ordenar por compra\n'; \ No newline at end of file +CHANGE COLUMN IF EXISTS `orden` `order` int(11) NOT NULL DEFAULT 1 COMMENT '1.- Ordenar por articulo\n2.- Ordenar por compra\n'; diff --git a/db/versions/10835-brownCarnation/32-definitivo.sql b/db/versions/10835-brownCarnation/32-definitivo.sql index d96f770f8..3628137f3 100644 --- a/db/versions/10835-brownCarnation/32-definitivo.sql +++ b/db/versions/10835-brownCarnation/32-definitivo.sql @@ -10,4 +10,4 @@ CHANGE COLUMN IF EXISTS `fecha` `created` timestamp NOT NULL DEFAULT current_tim ALTER TABLE IF EXISTS `vn`.`dmsStorageBox` COMMENT='Caja en la que se guardan la documentacion fisica de dms'; ALTER TABLE IF EXISTS vn.dmsStorageBox ADD CONSTRAINT dmsStorageBox_company_FK - FOREIGN KEY (companyFk) REFERENCES vn.company(id);s \ No newline at end of file + FOREIGN KEY (companyFk) REFERENCES vn.company(id); \ No newline at end of file