refactor: remove APP as part of name, carry-over from pre-extracted version
Some checks failed
/ sast (push) Waiting to run
/ build (push) Blocked by required conditions
/ tests (push) Has been cancelled

This commit is contained in:
Marc 2024-07-11 21:33:20 -04:00
parent 5dc776b0d2
commit 4f55ba624a
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
DB_HOST=... # Database host
DB_PORT=... # Database port
DB_APP_USER=... # Username to connect with when applying migrations
DB_APP_PASSWORD=... # Password to use to connect as $DB_APP_USER
DB_USER=... # Username to connect with when applying migrations
DB_PASSWORD=... # Password to use to connect as $DB_APP_USER
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"))
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 {
log.Printf("Failed to connect to the database: %s", err)