refactor: remove APP as part of name, carry-over from pre-extracted version
This commit is contained in:
parent
5dc776b0d2
commit
4f55ba624a
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue