Skip to content

Commit 342be4f

Browse files
committed
SQL: remove superfluous REVOKE commands
1 parent 23f331a commit 342be4f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ BEGIN
304304
) THEN
305305
RAISE WARNING 'Role web_anon already exists. Reassigning owned DB objects to current_user().';
306306
REASSIGN OWNED BY web_anon TO SESSION_USER;
307-
-- REVOKE ALL PRIVILEGES ON DATABASE current_database() FROM web_anon;
308-
-- REVOKE ALL PRIVILEGES ON SCHEMA "${opt.schema}" FROM web_anon;
309-
-- REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA "${opt.schema}" FROM web_anon;
310-
-- REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "${opt.schema}" FROM web_anon;
311307
ELSE
312308
BEGIN
313309
CREATE ROLE web_anon NOLOGIN NOINHERIT;
@@ -322,10 +318,6 @@ BEGIN
322318
) THEN
323319
RAISE WARNING 'Role postgrest already exists. Reassigning owned DB objects to current_user().';
324320
REASSIGN OWNED BY postgrest TO SESSION_USER;
325-
-- REVOKE ALL PRIVILEGES ON DATABASE current_database() FROM postgrest;
326-
-- REVOKE ALL PRIVILEGES ON SCHEMA "${opt.schema}" FROM postgrest;
327-
-- REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA "${opt.schema}" FROM postgrest;
328-
-- REVOKE ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "${opt.schema}" FROM postgrest;
329321
ELSE
330322
BEGIN
331323
CREATE ROLE postgrest LOGIN NOINHERIT NOCREATEDB NOCREATEROLE NOSUPERUSER PASSWORD '${postgrestPassword}';

0 commit comments

Comments
 (0)