File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ function initiate_upgrade {
319
319
run_sql -c " alter role postgres superuser; create role supabase_tmp login superuser;"
320
320
psql -h localhost -U supabase_tmp -d postgres << -EOSQL
321
321
begin;
322
- do $ $
322
+ do \$\ $
323
323
declare
324
324
postgres_rolpassword text := (select rolpassword from pg_authid where rolname = 'postgres');
325
325
supabase_admin_rolpassword text := (select rolpassword from pg_authid where rolname = 'supabase_admin');
@@ -468,8 +468,7 @@ begin
468
468
execute(format('alter table %I.%I owner to postgres;', rec.relnamespace::regnamespace, rec.relname));
469
469
end loop;
470
470
end
471
- $$ ;
472
- rollback;
471
+ \$\$ ;
473
472
EOSQL
474
473
run_sql -c " alter role postgres nosuperuser; drop role supabase_tmp;"
475
474
fi
You can’t perform that action at this time.
0 commit comments