Closed chandelabhishek closed 4 years ago
According to PG docs multiple hosts can be supplied in connection string, however db-migrate is not supporting it and parsing it all wrong.
for example: If I supply DATABSE_URL as postgres://user:@localhost:6432,localhost:5432/db_name it is parsing as this:
postgres://user:@localhost:6432,localhost:5432/db_name
{ driver: 'postgres', user: 'user', password: '', database: ':6432,localhost/db_name', host: 'localhost', port: '5432' }
However, using psql I am able to log in with same connection string.
psql
Will open this in node-db-migrate
According to PG docs multiple hosts can be supplied in connection string, however db-migrate is not supporting it and parsing it all wrong.
for example: If I supply DATABSE_URL as
postgres://user:@localhost:6432,localhost:5432/db_name
it is parsing as this:However, using
psql
I am able to log in with same connection string.