nit add useful sql script.

This commit is contained in:
ngfrolov 2022-12-16 16:09:11 +05:00
parent 54d68cc52d
commit 96d3d4c3ce

View 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)
);