diff --git a/AsbCloudDb/UsefulQueries/add_all_permissions_to_root.sql b/AsbCloudDb/UsefulQueries/add_all_permissions_to_root.sql new file mode 100644 index 00000000..bd77fefe --- /dev/null +++ b/AsbCloudDb/UsefulQueries/add_all_permissions_to_root.sql @@ -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) + ); \ No newline at end of file