Skip to content

Migrate: Postgres connection string without port prints undefined #5429

@timsuchanek

Description

@timsuchanek

I have a Postgres connection string of this form:

postgres://postgres:[email protected]/my-db

When I do prisma db push, I get this:

Datasource "db": PostgreSQL database "my-db", schema "public" at "lol.hello.eu-west-1.rds.amazonaws.com:undefined"

It seems like we should fill in the default value for the port if it's not in the connection string.

Metadata

Metadata

Assignees

Labels

good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!topic: cli

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions