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 {
315
315
# as bootstrap user to supabase_admin as bootstrap user.
316
316
317
317
echo " 8. TODO"
318
- run_sql -c " alter role postgres superuser;"
319
318
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;"
321
320
psql -h localhost -U supabase_tmp -d postgres << -EOSQL
322
321
begin;
323
322
do $$
472
471
$$ ;
473
472
rollback;
474
473
EOSQL
475
- run_sql -c " drop role supabase_tmp;"
474
+ run_sql -c " alter role postgres nosuperuser; drop role supabase_tmp;"
476
475
fi
477
476
478
477
if [ -z " $IS_NIX_UPGRADE " ]; then
You can’t perform that action at this time.
0 commit comments