Skip to content

Commit

Permalink
update postgres create user
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Nov 28, 2023
1 parent 85d2e11 commit bf057cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/dialect_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (d postgresDialect) CreateUser(tx Tx, ctx context.Context, l *Loader, usern
var q string
if readOnly {
q = fmt.Sprintf(`
CREATE ROLE %s LOGIN PASSWORD '%s';
CREATE ROLE %s LOGIN PASSWORD %s;
GRANT CONNECT ON DATABASE %s TO %s;
GRANT USAGE ON SCHEMA public TO %s;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO %s
Expand Down

0 comments on commit bf057cc

Please sign in to comment.