fix: perm should seed in ensure_seeded
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s

This commit is contained in:
Orion Kindel 2023-07-19 18:57:13 -05:00
parent e968b7583d
commit 46b4bc6496
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
2 changed files with 1 additions and 19 deletions

@ -1 +1 @@
Subproject commit f33340900061269c067e915082e827b07af1b8ad
Subproject commit b5740338f3a2b64c480fdf2416d44346bcfc3b27

View File

@ -11,24 +11,6 @@ create table public.perm
, path text not null unique
);
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;
$$;
create function do_insert_usr_perm() returns trigger language plpgsql as $$
declare
admins int;