This commit is contained in:
2025-10-14 23:27:54 +02:00
parent 94b69bb041
commit 6961caa2af
6 changed files with 65 additions and 11 deletions

View File

@@ -1,5 +1,20 @@
create role postgraphile_user nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
login password '9013';
alter default privileges in schema public
grant select on tables to postgraphile_user;
grant usage
on schema public
to postgraphile_user;
-- Pour toutes les tables du schéma public
grant select
on all tables
in schema public
to postgraphile_user;
-- Privilège par défaut pour que chaque nouvelle table créée dans public
-- donnera automatiquement le droit SELECT à postgraphile_user.
alter default privileges
in schema public
grant select
on tables
to postgraphile_user;