refactor: remove APP as part of name, carry-over from pre-extracted version
All checks were successful
/ sast (push) Successful in 39s
/ tests (push) Successful in 46s
/ build (push) Successful in 48s

This commit is contained in:
Marc 2024-07-11 21:33:20 -04:00
parent 5dc776b0d2
commit ad4d723ceb
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ Connection details about the database to apply migrations on can be provided via
```bash ```bash
DB_HOST=... # Database host DB_HOST=... # Database host
DB_PORT=... # Database port DB_PORT=... # Database port
DB_APP_USER=... # Username to connect with when applying migrations DB_USER=... # Username to connect with when applying migrations
DB_APP_PASSWORD=... # Password to use to connect as $DB_APP_USER DB_PASSWORD=... # Password to use to connect as $DB_APP_USER
DB_NAME=... # Database name to apply migrations on DB_NAME=... # Database name to apply migrations on
``` ```

View file

@ -13,7 +13,7 @@ func SetupDatabaseConnection(cmd *cobra.Command, args []string) {
dbPort, _ := strconv.Atoi(os.Getenv("DB_PORT")) dbPort, _ := strconv.Atoi(os.Getenv("DB_PORT"))
db := NewDatabase(os.Getenv("DB_HOST"), dbPort) db := NewDatabase(os.Getenv("DB_HOST"), dbPort)
err := db.Connect(os.Getenv("DB_APP_USER"), os.Getenv("DB_APP_PASSWORD"), os.Getenv("DB_NAME")) err := db.Connect(os.Getenv("DB_USER"), os.Getenv("DB_PASSWORD"), os.Getenv("DB_NAME"))
if err != nil { if err != nil {
log.Printf("Failed to connect to the database: %s", err) log.Printf("Failed to connect to the database: %s", err)