This commit is contained in:
parent
0ddcb57209
commit
a9b2aef27a
|
@ -1,13 +1,12 @@
|
||||||
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
|
-- 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)
|
INSERT INTO `account`.`role` (name,description)
|
||||||
VALUES ('deliveryAssistant','Asistencia de envios');
|
VALUES ('deliveryAssistant','Jefe auxiliar repartos');
|
||||||
|
|
||||||
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';
|
|
||||||
|
|
||||||
|
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
||||||
|
SELECT (SELECT id FROM account.role r1 WHERE r1.name = 'deliveryAssistant'), ri.inheritsFrom
|
||||||
|
FROM account.roleInherit ri
|
||||||
|
JOIN account.role r2 ON r2.id = ri.`role`
|
||||||
|
WHERE r2.name = 'deliveryBoss';
|
||||||
|
|
||||||
DELETE FROM `account`.`roleInherit` WHERE role = 57;
|
DELETE FROM `account`.`roleInherit` WHERE role = 57;
|
||||||
|
|
||||||
|
@ -17,5 +16,3 @@ INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
|
||||||
|
|
||||||
|
|
||||||
CALL account.role_syncPrivileges();
|
CALL account.role_syncPrivileges();
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue