fix: perm should seed in ensure_seeded
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
This commit is contained in:
parent
e968b7583d
commit
46b4bc6496
@ -1 +1 @@
|
|||||||
Subproject commit f33340900061269c067e915082e827b07af1b8ad
|
Subproject commit b5740338f3a2b64c480fdf2416d44346bcfc3b27
|
@ -11,24 +11,6 @@ create table public.perm
|
|||||||
, path text not null unique
|
, 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 $$
|
create function do_insert_usr_perm() returns trigger language plpgsql as $$
|
||||||
declare
|
declare
|
||||||
admins int;
|
admins int;
|
||||||
|
Loading…
Reference in New Issue
Block a user