seed perm
This commit is contained in:
parent
f333409000
commit
b5740338f3
@ -21,6 +21,24 @@ values
|
|||||||
on conflict do nothing
|
on conflict do nothing
|
||||||
;
|
;
|
||||||
|
|
||||||
|
do language plpgsql $$
|
||||||
|
declare
|
||||||
|
root int;
|
||||||
|
admins int;
|
||||||
|
begin
|
||||||
|
root := (public.usr_root()).id;
|
||||||
|
admins := (public.grp_admins()).id;
|
||||||
|
|
||||||
|
insert into public.perm
|
||||||
|
(path, owner_user, owner_group, owner_user_mode, owner_group_mode, everyone_mode)
|
||||||
|
values
|
||||||
|
('/communities/', root, admins, 'w', 'w', 'r')
|
||||||
|
, ('/users/', root, admins, 'w', 'w', 'w')
|
||||||
|
, ('/groups/', root, admins, 'w', 'w', 'w')
|
||||||
|
;
|
||||||
|
end;
|
||||||
|
$$;
|
||||||
|
|
||||||
-- human_uuid.object >>
|
-- human_uuid.object >>
|
||||||
insert into human_uuid.object (word)
|
insert into human_uuid.object (word)
|
||||||
values
|
values
|
||||||
|
Loading…
Reference in New Issue
Block a user