sg migration: prefer ENV vars from config, fallback to process env
Created by: mrnugget
This fixes #31919 (closed) and with it the last reason for having PG*
env vars set in an environment. Rest should now be in sg.config.yaml
.
Test plan
- Unset
PG*
env vars in my.envrc
-
env | grep PG
to confirm they're gone in new shell - In
dev/sg
:go run . migration up
to confirm it works