Skip to content

Commit ebf1c85

Browse files
committed
test
1 parent 0fda41a commit ebf1c85

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
@@ -314,6 +314,7 @@ function initiate_upgrade {
314314
echo "8. Swap postgres & supabase_admin roles if upgrading from a project with postgres as bootstrap user"
315315
if [ "$OLD_BOOTSTRAP_USER" = "postgres" ]; then
316316
run_sql -c "alter role postgres superuser; create role supabase_tmp login superuser;"
317+
# TODO: move to its own file
317318
psql -h localhost -U supabase_tmp -d postgres <<'EOSQL'
318319
do $$
319320
declare
@@ -466,7 +467,7 @@ begin
466467
end
467468
$$;
468469
EOSQL
469-
run_sql -c "alter role postgres nosuperuser; drop role supabase_tmp;"
470+
run_sql -c "drop role supabase_tmp;"
470471
fi
471472

472473
if [ -z "$IS_NIX_UPGRADE" ]; then

0 commit comments

Comments
 (0)