Skip to content

Commit 75300b0

Browse files
committed
test
1 parent f53c176 commit 75300b0

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ function initiate_upgrade {
319319
run_sql -c "alter role postgres superuser; create role supabase_tmp login superuser;"
320320
psql -h localhost -U supabase_tmp -d postgres <<-EOSQL
321321
begin;
322-
do $$
322+
do \$\$
323323
declare
324324
postgres_rolpassword text := (select rolpassword from pg_authid where rolname = 'postgres');
325325
supabase_admin_rolpassword text := (select rolpassword from pg_authid where rolname = 'supabase_admin');
@@ -468,8 +468,7 @@ begin
468468
execute(format('alter table %I.%I owner to postgres;', rec.relnamespace::regnamespace, rec.relname));
469469
end loop;
470470
end
471-
$$;
472-
rollback;
471+
\$\$;
473472
EOSQL
474473
run_sql -c "alter role postgres nosuperuser; drop role supabase_tmp;"
475474
fi

0 commit comments

Comments
 (0)