refactor: delete unnecessary sql
gitea/salix/pipeline/head This commit is unstable
Details
gitea/salix/pipeline/head This commit is unstable
Details
This commit is contained in:
parent
979ee1d956
commit
189d0a27bc
|
@ -1,2 +0,0 @@
|
||||||
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;
|
|
|
@ -2608,7 +2608,6 @@ INSERT INTO `vn`.`workerTimeControlConfig` (`id`, `dayBreak`, `dayBreakDriver`,
|
||||||
VALUES
|
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);
|
(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`)
|
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, 9);
|
(1, 9);
|
|
@ -34348,6 +34348,7 @@ CREATE TABLE `route` (
|
||||||
`priority` int(11) NOT NULL DEFAULT '0',
|
`priority` int(11) NOT NULL DEFAULT '0',
|
||||||
`invoiceInFk` mediumint(8) unsigned DEFAULT NULL,
|
`invoiceInFk` mediumint(8) unsigned DEFAULT NULL,
|
||||||
`beachFk` int(11) DEFAULT NULL,
|
`beachFk` int(11) DEFAULT NULL,
|
||||||
|
`commissionWorkCenterFk` int(11) DEFAULT NULL COMMENT 'WorkerCenter que gestiona la ruta',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `Id_Agencia` (`agencyModeFk`),
|
KEY `Id_Agencia` (`agencyModeFk`),
|
||||||
KEY `Fecha` (`created`),
|
KEY `Fecha` (`created`),
|
||||||
|
@ -34356,7 +34357,9 @@ CREATE TABLE `route` (
|
||||||
KEY `fk_route_1_idx` (`zoneFk`),
|
KEY `fk_route_1_idx` (`zoneFk`),
|
||||||
KEY `asdfasdf_idx` (`invoiceInFk`),
|
KEY `asdfasdf_idx` (`invoiceInFk`),
|
||||||
KEY `route_idxIsOk` (`isOk`),
|
KEY `route_idxIsOk` (`isOk`),
|
||||||
|
KEY `route_WorkCenterFk_idx` (`commissionWorkCenterFk`),
|
||||||
CONSTRAINT `fk_route_1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
CONSTRAINT `fk_route_1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||||
|
CONSTRAINT `route_WorkCenterFk` FOREIGN KEY (`commissionWorkCenterFk`) REFERENCES `workCenter` (`id`) ON UPDATE CASCADE,
|
||||||
CONSTRAINT `route_fk5` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
CONSTRAINT `route_fk5` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||||
CONSTRAINT `route_ibfk_1` FOREIGN KEY (`gestdocFk`) REFERENCES `dms` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
CONSTRAINT `route_ibfk_1` FOREIGN KEY (`gestdocFk`) REFERENCES `dms` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||||
CONSTRAINT `route_ibfk_2` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
|
CONSTRAINT `route_ibfk_2` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
|
||||||
|
@ -34513,6 +34516,7 @@ CREATE TABLE `routeConfig` (
|
||||||
`plusCategory1Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
`plusCategory1Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||||
`plusCategory2Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
`plusCategory2Concept` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||||
`defaultCompanyFk` smallint(5) unsigned DEFAULT '442',
|
`defaultCompanyFk` smallint(5) unsigned DEFAULT '442',
|
||||||
|
`defaultWorkCenterFk` int(11) DEFAULT 9 COMMENT 'Para el cálculo de las comisiones, en caso de el creador de la ruta no tenga workCenter',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `routeConfig_FK` (`defaultCompanyFk`),
|
KEY `routeConfig_FK` (`defaultCompanyFk`),
|
||||||
CONSTRAINT `routeConfig_FK` FOREIGN KEY (`defaultCompanyFk`) REFERENCES `company` (`id`)
|
CONSTRAINT `routeConfig_FK` FOREIGN KEY (`defaultCompanyFk`) REFERENCES `company` (`id`)
|
||||||
|
|
Loading…
Reference in New Issue