24 lines
754 B
SQL
24 lines
754 B
SQL
-- 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');
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|