diff --git a/db/dialect_postgres.go b/db/dialect_postgres.go index d549c44..0000e27 100644 --- a/db/dialect_postgres.go +++ b/db/dialect_postgres.go @@ -243,7 +243,7 @@ func (d postgresDialect) CreateUser(tx Tx, ctx context.Context, l *Loader, usern 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 + ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO %s; GRANT SELECT ON ALL TABLES IN SCHEMA public TO %s; `, user, pass, db, user, user, user, user) } else {