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)