diff --git a/ensure_seeded.sql b/ensure_seeded.sql index ec0e898..2934a84 100644 --- a/ensure_seeded.sql +++ b/ensure_seeded.sql @@ -21,6 +21,24 @@ values 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 >> insert into human_uuid.object (word) values