diff --git a/cmd/goose/main.go b/cmd/goose/main.go index b9302052d..c16ef3c7b 100644 --- a/cmd/goose/main.go +++ b/cmd/goose/main.go @@ -125,7 +125,7 @@ func main() { case "sqlite3": // Internally uses the CGo-free port of SQLite: modernc.org/sqlite driver = "sqlite" - case "postgres": + case "postgres", "redshift": driver = "pgx" } db, err := goose.OpenDBWithDriver(driver, normalizeDBString(driver, dbstring, *certfile, *sslcert, *sslkey)) diff --git a/db.go b/db.go index cebb49238..8f43f5959 100644 --- a/db.go +++ b/db.go @@ -15,8 +15,6 @@ func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) { switch driver { case "mssql": driver = "sqlserver" - case "redshift": - driver = "postgres" case "tidb": driver = "mysql" }