db-migrate/pg

Connect to postgres db on empty database configuration

Closed this issue · 0 comments

Refers to db-migrate/node-db-migrate#338

Current behavior

Currently the default behavior of the used postgres driver itself is to use the current username as database name if no database was configured. This most probably results in a database does not exists error.

Proposed solution

Default to use the database postgres which always exists.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29956196-connect-to-postgres-db-on-empty-database-configuration?utm_campaign=plugin&utm_content=tracker%2F14258523&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F14258523&utm_medium=issues&utm_source=github).