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 @@ -315,9 +315,8 @@ function initiate_upgrade {
315315 # as bootstrap user to supabase_admin as bootstrap user.
316316
317317 echo " 8. TODO"
318- run_sql -c " alter role postgres superuser;"
319318 if [ " $OLD_BOOTSTRAP_USER " = " postgres" ]; then
320- run_sql -c " create role supabase_tmp login superuser;"
319+ run_sql -c " alter role postgres superuser; create role supabase_tmp login superuser;"
321320 psql -h localhost -U supabase_tmp -d postgres << -EOSQL
322321begin;
323322do $$
472471$$ ;
473472rollback;
474473EOSQL
475- run_sql -c " drop role supabase_tmp;"
474+ run_sql -c " alter role postgres nosuperuser; drop role supabase_tmp;"
476475 fi
477476
478477 if [ -z " $IS_NIX_UPGRADE " ]; then
You can’t perform that action at this time.
0 commit comments