From d009d2c3d26daeab5e58edeabc399fef05376e92 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sun, 18 Oct 2026 10:31:01 +0400 Subject: [PATCH] postgres-init: grant the bingo monitor tables to bingo asxpio's migration 017 adds bingo_monitor_targets, _samples and _buckets for datacenterbingo's status page. The migration grants them itself; list them here too so a fresh install gets the same grants. Assisted-by: Claude:opus-5-5 --- init/postgres-init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/postgres-init.sh b/init/postgres-init.sh index 007e487..dd1871e 100644 --- a/init/postgres-init.sh +++ b/init/postgres-init.sh @@ -45,7 +45,8 @@ GRANT USAGE ON SCHEMA public TO bingo; DO $$ DECLARE t text; BEGIN - FOREACH t IN ARRAY ARRAY['bingo_datacenters', 'bingo_incidents'] LOOP + FOREACH t IN ARRAY ARRAY['bingo_datacenters', 'bingo_incidents', 'bingo_monitor_targets', + 'bingo_monitor_samples', 'bingo_monitor_buckets'] LOOP IF to_regclass('public.' || t) IS NOT NULL THEN EXECUTE format('GRANT SELECT ON public.%I TO bingo', t); ELSE