forked from ddrilling/AsbCloudServer
nit add useful sql script.
This commit is contained in:
parent
54d68cc52d
commit
96d3d4c3ce
12
AsbCloudDb/UsefulQueries/add_all_permissions_to_root.sql
Normal file
12
AsbCloudDb/UsefulQueries/add_all_permissions_to_root.sql
Normal file
@ -0,0 +1,12 @@
|
||||
-- Добавить все отсутствующие разрешения группе root.
|
||||
insert into t_relation_user_role_permission
|
||||
(select
|
||||
1 as id_user_role,
|
||||
id as id_permission
|
||||
from t_permission
|
||||
where id not in (
|
||||
select
|
||||
t_relation_user_role_permission.id_permission
|
||||
from t_relation_user_role_permission
|
||||
where id_user_role = 1)
|
||||
);
|
Loading…
Reference in New Issue
Block a user