5660-changeRolDeliveryAssistant #1607
|
@ -0,0 +1,21 @@
|
||||||
|
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
|
||||||
carlossa marked this conversation as resolved
Outdated
|
|||||||
|
INSERT INTO `account`.`role` (name,description)
|
||||||
|
VALUES ('deliveryAssistant','Asistencia de envios');
|
||||||
|
|
||||||
|
INSERT INTO `account`.`roleInherit` (role,inheritsFrom)
|
||||||
|
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 `account`.`roleInherit` WHERE role = 57;
|
||||||
|
|
||||||
|
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
||||||
|
SELECT (SELECT id FROM account.role WHERE name = 'deliveryBoss') role,
|
||||||
|
(SELECT id FROM account.role WHERE name = 'deliveryAssistant') roleInherit;
|
||||||
|
|
||||||
|
|
||||||
|
CALL account.role_syncPrivileges();
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
No habria asigut mes facil canviarli en nom a deliveryBoss a deliveryAssistant i soles cal crear uno nou (deliveryBoss) i fer que herede de deliveryAssitant?