Skip to content

Commit

Permalink
fix(api): fixed sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Sep 16, 2024
1 parent 42719ef commit 34c3470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/storage/grafana_user.sql.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ $do$
FROM pg_catalog.pg_roles
WHERE rolname = 'grafana') THEN
CREATE USER grafana WITH PASSWORD '{{ .GrafanaPostgresPassword }}';
GRANT USAGE ON SCHEMA report TO grafana;
GRANT SELECT ON ALL TABLES IN SCHEMA report TO grafana;
GRANT USAGE ON SCHEMA public TO grafana;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO grafana;
END IF;
END
$do$;

0 comments on commit 34c3470

Please sign in to comment.