I'm submitting a...
Current behavior
running db-migrate with DATABASE_URL defined does not ignore defaultEnv from .db-migraterc
Expected behavior
running db-migrate with DATABASE_URL respects that value and doesn't try to read defaultEnv from .db-migraterc
Minimal reproduction of the problem with instructions
export DATABASE_URL=mysql://<some-valid-connection-string>
- create a
.db-migraterc with a defaultEnv configured. I chose local instead of dev for my example.
- Run
db-migrate.
- You will see something like "environment 'local' is not defined"
What is the motivation / use case for changing the behavior?
When setting database URL, the intent is that it is defining everything about your environment. To respect the defaultEnv setting from .db-migraterc seems to contradict that
Environment
db-migrate version: 0.11.1
plugins with versions: unknown, don't think I'm using plugins?
db-migrate driver with versions:
mysql 1.1.10
Additional information:
- Node version: 8.9.4
- Platform: MacOS 10.13
Others:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I'm submitting a...
Current behavior
running
db-migratewithDATABASE_URLdefined does not ignoredefaultEnvfrom.db-migratercExpected behavior
running
db-migratewithDATABASE_URLrespects that value and doesn't try to readdefaultEnvfrom.db-migratercMinimal reproduction of the problem with instructions
export DATABASE_URL=mysql://<some-valid-connection-string>.db-migratercwith adefaultEnvconfigured. I chose local instead of dev for my example.db-migrate.What is the motivation / use case for changing the behavior?
When setting database URL, the intent is that it is defining everything about your environment. To respect the
defaultEnvsetting from.db-migratercseems to contradict thatEnvironment
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.