Skip to content

Commit 6a343e7

Browse files
committed
Fix initial postgrest migration
1 parent a230c11 commit 6a343e7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

postgres/migrations/00-init_postgrest.sql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
-- Initial migrations to setup PostgREST
22

3-
-- To reduce the chance of env vars being logged, we set values here
4-
set pgrst_jwt_secret '$PGRST_JWT_SECRET'
5-
set pgrst_authenticator_pass '$PGRST_AUTHENTICATOR_PASS'
6-
7-
-- Non-transactional statements (these cannot go inside a transaction)
3+
-- Set values here to reduce the chance of env vars being logged
4+
\set pgrst_jwt_secret '$PGRST_JWT_SECRET'
5+
\set pgrst_authenticator_pass '$PGRST_AUTHENTICATOR_PASS'
86

97
-- Set the JWT secret in the db - despite it being set in the PGRST_JWT_SECRET
108
-- env var, this appears to be also required

0 commit comments

Comments
 (0)