refs #7529 back models acls #2563
|
@ -1,15 +0,0 @@
|
|||
-- ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_disabilityGradeFk;
|
||||
-- ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_workerFk;
|
||||
|
||||
-- RENAME TABLE `vn`.`workerRelatives` TO `vn`.`workerRelative`;
|
||||
|
||||
-- ALTER TABLE vn.workerRelative ADD CONSTRAINT `workerRelatives_disabilityGradeFk` FOREIGN KEY (`disabilityGradeFk`) REFERENCES `disabilityGrade` (`id`) ON UPDATE CASCADE;
|
||||
-- ALTER TABLE vn.workerRelative ADD CONSTRAINT `workerRelatives_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `workerIrpf` (`workerFk`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
|
||||
-- INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
-- VALUES
|
||||
-- ('workerRelative','*','*','ALLOW','ROLE','hr'),
|
||||
-- ('workerIrpf','*','*','ALLOW','ROLE','hr'),
|
||||
-- ('disabilityGrade','*','*','ALLOW','ROLE','hr');
|
||||
|
|
@ -1,15 +1,9 @@
|
|||
ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_disabilityGradeFk;
|
||||
ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_workerFk;
|
||||
|
||||
-- RENAME TABLE `vn`.`workerRelatives` TO `vn`.`workerRelative`;
|
||||
|
||||
-- ALTER TABLE vn.workerRelative ADD CONSTRAINT `workerRelatives_disabilityGradeFk` FOREIGN KEY (`disabilityGradeFk`) REFERENCES `disabilityGrade` (`id`) ON UPDATE CASCADE;
|
||||
-- ALTER TABLE vn.workerRelative ADD CONSTRAINT `workerRelatives_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `workerIrpf` (`workerFk`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
carlossa marked this conversation as resolved
|
||||
VALUES
|
||||
('workerRelatives','*','*','ALLOW','ROLE','hr'),
|
||||
('workerIrpf','*','*','ALLOW','ROLE','hr'),
|
||||
('disabilityGrade','*','*','ALLOW','ROLE','hr');
|
||||
('WorkerRelative','*','*','ALLOW','ROLE','hr'),
|
||||
carlossa marked this conversation as resolved
Outdated
alexm
commented
Sense "*"? @jgallego Sense "*"? @jgallego
jgallego
commented
igual que tenga worker igual que tenga worker
|
||||
('WorkerIrpf','*','*','ALLOW','ROLE','hr'),
|
||||
('DisabilityGrade','*','*','ALLOW','ROLE','hr');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Comentat?