db-migrate / db-migrate/node-db-migrate

schema config parameter has no effect with pg driver (postgres)

Open
#459 8 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

I trying to get db-migrate to create the migration table in a schema of my choosing, to no avail. After a brief look through the code, it seems to me that the schema attribute in database.json is never used. If I understand the code correctly, the config object is passed directly to the node-postgres driver, which does nothing with the schema attribute.

This issue here is possibly relevant, it basically states that schema specification through config is not supported.

https://github.com/brianc/node-postgres/issues/1123

Am I missing something?

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41592523-schema-config-parameter-has-no-effect-with-pg-driver-postgres?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.