From 5f2f5b9b250ddb8b1b4ee0794166870e2d927dfa Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 5 Jul 2022 10:18:26 +0200 Subject: [PATCH] feat: add sql changes --- db/changes/10480-june/00-route.sql | 2 ++ db/dump/fixtures.sql | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/changes/10480-june/00-route.sql diff --git a/db/changes/10480-june/00-route.sql b/db/changes/10480-june/00-route.sql new file mode 100644 index 000000000..d48d9475b --- /dev/null +++ b/db/changes/10480-june/00-route.sql @@ -0,0 +1,2 @@ +ALTER TABLE `vn`.`route` ADD commissionWorkCenterFk INT NULL; +ALTER TABLE `vn`.`route` ADD CONSTRAINT route_FK FOREIGN KEY (commissionWorkCenterFk) REFERENCES vn.workCenter(id) ON DELETE RESTRICT ON UPDATE CASCADE; \ No newline at end of file diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 5a2188cb5..ebbe9e2de 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -2606,4 +2606,9 @@ INSERT INTO `vn`.`sectorCollectionSaleGroup` (`sectorCollectionFk`, `saleGroupFk INSERT INTO `vn`.`workerTimeControlConfig` (`id`, `dayBreak`, `dayBreakDriver`, `shortWeekBreak`, `longWeekBreak`, `weekScope`, `mailPass`, `mailHost`, `mailSuccessFolder`, `mailErrorFolder`, `mailUser`, `minHoursToBreak`, `breakHours`, `hoursCompleteWeek`, `startNightlyHours`, `endNightlyHours`, `maxTimePerDay`, `breakTime`, `timeToBreakTime`, `dayMaxTime`, `shortWeekDays`, `longWeekDays`) VALUES - (1, 43200, 32400, 129600, 259200, 604800, '', '', 'Leidos.exito', 'Leidos.error', 'timeControl', 5.33, 0.33, 40, '22:00:00', '06:00:00', 57600, 1200, 18000, 57600, 6, 13); \ No newline at end of file + (1, 43200, 32400, 129600, 259200, 604800, '', '', 'Leidos.exito', 'Leidos.error', 'timeControl', 5.33, 0.33, 40, '22:00:00', '06:00:00', 57600, 1200, 18000, 57600, 6, 13); + +ALTER TABLE `vn`.`routeConfig` ADD defaultWorkCenterFk INT NULL; +INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`) + VALUES + (1, 9); \ No newline at end of file