Skip to content

Commit

Permalink
Remove hardcoded pgwatch user in config schema creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Avi authored and Kris Avi committed Oct 31, 2024
1 parent 45de4a4 commit 15c45e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/metrics/postgres_schema.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CREATE SCHEMA IF NOT EXISTS pgwatch AUTHORIZATION pgwatch;
SET ROLE TO pgwatch;
CREATE SCHEMA IF NOT EXISTS pgwatch;

CREATE TABLE IF NOT EXISTS pgwatch.metric (
name text PRIMARY KEY,
Expand Down Expand Up @@ -84,4 +83,4 @@ CREATE TABLE pgwatch.migration(
INSERT INTO
pgwatch.migration (id, version)
VALUES
(0, '00179 Apply metrics migrations for v3');
(0, '00179 Apply metrics migrations for v3');

0 comments on commit 15c45e7

Please sign in to comment.