13 lines
590 B
MySQL
13 lines
590 B
MySQL
|
INSERT INTO account.role (id, name, description)
|
||
|
VALUES
|
||
|
(74, 'userPhotos', 'Privilegios para subir fotos de usuario'),
|
||
|
(75, 'catalogPhotos', 'Privilegios para subir fotos del catálogo');
|
||
|
|
||
|
INSERT INTO account.roleInherit (role, inheritsFrom)
|
||
|
VALUES
|
||
|
(37, (SELECT id FROM account.role WHERE name = 'userPhotos')),
|
||
|
(51, (SELECT id FROM account.role WHERE name = 'userPhotos')),
|
||
|
(51, (SELECT id FROM account.role WHERE name = 'catalogPhotos')),
|
||
|
(35, (SELECT id FROM account.role WHERE name = 'catalogPhotos'));
|
||
|
|
||
|
CALL account.role_sync();
|