5660-changeRolDeliveryAssistant #1607

Merged
carlossa merged 36 commits from 5660-changeRolDeliveryAssistant into dev 2023-09-20 11:04:32 +00:00
1 changed files with 16 additions and 0 deletions
Showing only changes of commit 39f8212529 - Show all commits

View File

@ -2,6 +2,22 @@
INSERT INTO `account`.`role` (name,description)
VALUES ('deliveryAssistant','Asistencia de envios');
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';
DELETE FROM roleInherit WHERE role = 57;
INSERT INTO `account`.`roleInherit`
SELECT (SELECT id FROM account.role r WHERE r.name = 'deliveryBoss'), ri.inheritsFrom
FROM account.roleInherit ri
JOIN account.role r ON r.id = ri.`role`
WHERE