Skip to content

Commit 28e8c00

Browse files
committed
test
1 parent e8b3cf9 commit 28e8c00

File tree

1 file changed

+2
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+2
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ begin
486486
if obj->>'role' in ('postgres', 'supabase_admin') or rec.grantee::regrole in ('postgres', 'supabase_admin') then
487487
execute(format('alter default privileges for role %I %s revoke %s on %s from %I'
488488
, case when obj->>'role' = 'postgres' then 'supabase_admin'
489-
else 'postgres'
489+
when obj->>'role' = 'supabase_admin' then 'postgres'
490+
else obj->>'role'
490491
end
491492
, case when obj->>'schema' is null then ''
492493
else format('in schema %I', (obj->>'schema')::regnamespace)

0 commit comments

Comments
 (0)