16 lines
778 B
SQL
16 lines
778 B
SQL
ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_disabilityGradeFk;
|
|
ALTER TABLE vn.workerRelatives DROP FOREIGN KEY workerRelatives_workerFk;
|
|
|
|
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
|
VALUES
|
|
('WorkerRelative','updateAttributes','*','ALLOW','ROLE','hr'),
|
|
('WorkerRelative','crud','WRITE','ALLOW','ROLE','hr'),
|
|
('WorkerRelative','findById','*','ALLOW','ROLE','hr'),
|
|
('WorkerIrpf','updateAttributes','*','ALLOW','ROLE','hr'),
|
|
('WorkerIrpf','crud','*','ALLOW','ROLE','hr'),
|
|
('WorkerRelative','findById','*','ALLOW','ROLE','hr'),
|
|
('DisabilityGrade','updateAttributes','*','ALLOW','ROLE','hr'),
|
|
('DisabilityGrade','crud','*','ALLOW','ROLE','hr'),
|
|
('DisabilityGrade','findById','*','ALLOW','ROLE','hr');
|
|
|