From 76fe32924c8e8ac530ed8ecb3326ce1f82135dc6 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 17 Jan 2023 09:25:20 +0100 Subject: [PATCH] fix: update url --- db/changes/230201/00-report.sql | 2 +- db/dump/fixtures.sql | 9 +++++---- db/dump/structure.sql | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/db/changes/230201/00-report.sql b/db/changes/230201/00-report.sql index 3101d0870..5d3c9db45 100644 --- a/db/changes/230201/00-report.sql +++ b/db/changes/230201/00-report.sql @@ -1,3 +1,3 @@ UPDATE `vn`.`report` - SET `method`='InvoiceOuts/{reference}/invoice' + SET `method`='InvoiceOuts/{refFk}/invoice' WHERE name='invoice'; diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 559338f53..5bef8f72e 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -147,10 +147,11 @@ INSERT INTO `vn`.`sector`(`id`, `description`, `warehouseFk`, `isPreviousPrepare (1, 'First sector', 1, 1, 'FIRST'), (2, 'Second sector', 2, 0, 'SECOND'); -INSERT INTO `vn`.`printer` (`id`, `name`, `path`, `isLabeler`, `sectorFk`) +INSERT INTO `vn`.`printer` (`id`, `name`, `path`, `isLabeler`, `sectorFk`, `ipAddress`) VALUES - (1, 'printer1', 'path1', 0, 1), - (2, 'printer2', 'path2', 1, 1); + (1, 'printer1', 'path1', 0, 1 , NULL), + (2, 'printer2', 'path2', 1, 1 , NULL), + (4, 'printer4', 'path4', 0, NULL, 10.1.10.4); INSERT INTO `vn`.`worker`(`id`, `code`, `firstName`, `lastName`, `userFk`,`bossFk`, `phone`, `sectorFk`, `labelerFk`) VALUES @@ -2762,7 +2763,7 @@ INSERT INTO `salix`.`url` (`appName`, `environment`, `url`) INSERT INTO `vn`.`report` (`id`, `name`, `paperSizeFk`, `method`) VALUES - (3, 'invoice', NULL, 'InvoiceOuts/{reference}/invoice'); + (3, 'invoice', NULL, 'InvoiceOuts/{refFk}/invoice'); INSERT INTO `vn`.`payDemDetail` (`id`, `detail`) VALUES diff --git a/db/dump/structure.sql b/db/dump/structure.sql index 47fdd6d74..ab8b8969c 100644 --- a/db/dump/structure.sql +++ b/db/dump/structure.sql @@ -32370,6 +32370,7 @@ CREATE TABLE `printQueue` ( `error` text COLLATE utf8mb3_unicode_ci DEFAULT NULL, `errorNumber` int(11) DEFAULT NULL, `created` timestamp NOT NULL DEFAULT current_timestamp(), + `serverId` int(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `statusCode` (`statusCode`), KEY `printerFk` (`printerFk`), @@ -32379,7 +32380,7 @@ CREATE TABLE `printQueue` ( CONSTRAINT `printQueue_printerFk` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`) ON UPDATE CASCADE, CONSTRAINT `printQueue_priorityFk` FOREIGN KEY (`priorityFk`) REFERENCES `queuePriority` (`id`) ON UPDATE CASCADE, CONSTRAINT `printQueue_report` FOREIGN KEY (`reportFk`) REFERENCES `report` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; --