refs #5660 role mod
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-06-28 08:02:31 +02:00
parent eaf3f5e3ea
commit 68b65105fd
2 changed files with 9 additions and 27 deletions

View File

@ -1,7 +1,7 @@
-- Auto-generated SQL script #202306121356
UPDATE `account`.`role`
SET `description` = 'Asistente de envios'
WHERE `name` = 'deliveryAssistant';
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
INSERT INTO `account`.`role` (name,description)
VALUES ('deliveryAssistant','Asistencia de envios');

View File

@ -1,23 +1,5 @@
-- Auto-generated SQL script #202306121403
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,1);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,2);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,3);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,6);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,11);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,13);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,33);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,56);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,57);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,70);
INSERT INTO `account`.`roleInherit` (`role`,inheritsFrom)
VALUES (117,76);
INSERT INTO account.roleInherit
SELECT (SELECT id FROM account.role r WHERE r.name = 'deliveryAssistant'), ri.inheritsFrom
FROM account.roleInherit ri
JOIN account.role r ON r.id = ri.`role`
WHERE r.name = 'deliveryBoss';