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

Is there any way to override DATABASE_URL so I can determine which db to run migration for?

Open
#738 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

## I'm submitting a...

- [ ] Bug report
- [ ] Feature request
- [x ] Question

## Current behavior

My app recently got a new db created to have specific migrations run on it. But because of `DATABASE_URL`, I cannot set database.json or .db-migraterc to set multiple db to use `db-migrate -e `

`db-migrate` ignores database.json and .db-migraterc when `DATABASE_URL` is present in env variables. I cannot take that value out as other scripts still depend on it.

How do I run different migrations on different dbs?

## Expected behavior

Being able to run different migrations on different dbs

## Environment



db-migrate version: 0.11

Additional information:
- Node version: 10
- Platform: Linux

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.