We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fda41a commit ebf1c85Copy full SHA for ebf1c85
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -314,6 +314,7 @@ function initiate_upgrade {
314
echo "8. Swap postgres & supabase_admin roles if upgrading from a project with postgres as bootstrap user"
315
if [ "$OLD_BOOTSTRAP_USER" = "postgres" ]; then
316
run_sql -c "alter role postgres superuser; create role supabase_tmp login superuser;"
317
+ # TODO: move to its own file
318
psql -h localhost -U supabase_tmp -d postgres <<'EOSQL'
319
do $$
320
declare
@@ -466,7 +467,7 @@ begin
466
467
end
468
$$;
469
EOSQL
- run_sql -c "alter role postgres nosuperuser; drop role supabase_tmp;"
470
+ run_sql -c "drop role supabase_tmp;"
471
fi
472
473
if [ -z "$IS_NIX_UPGRADE" ]; then
0 commit comments