From ad4d723ceb67101bc132b283018c61fb8c5e6b9b Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 11 Jul 2024 21:33:20 -0400 Subject: [PATCH] refactor: remove APP as part of name, carry-over from pre-extracted version --- README.md | 4 ++-- cobble.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5ea39f1..9a8137a 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/cobble.go b/cobble.go index 84972ab..d0c0c3b 100644 --- a/cobble.go +++ b/cobble.go @@ -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)