We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
public
1 parent b3d2228 commit eea5ee0Copy full SHA for eea5ee0
ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh
@@ -356,6 +356,7 @@ begin
356
end
357
, case when rec.grantee = 'postgres'::regrole then 'supabase_admin'
358
when rec.grantee = 'supabase_admin'::regrole then 'postgres'
359
+ when rec.grantee = 0 then 'public'
360
else rec.grantee::regrole
361
362
));
@@ -382,7 +383,7 @@ begin
382
383
when obj->>'objtype' = 'T' then 'types'
384
when obj->>'objtype' = 'n' then 'schemas'
385
- , rec.grantee::regrole
386
+ , case when rec.grantee = 0 then 'public' else rec.grantee::regrole end
387
, case when rec.is_grantable then 'with grant option' else '' end
388
389
end if;
0 commit comments