I am trying to use db:create <dbname> to create a new MySQL database. When the database.json is populated with connection information with the database specified the command fails stating that the database does not exist (doh! I am trying to create it!)
What is the motivation / use case for changing the behavior?
To be able to provide stable way to create and seed database for developers when they start working on the project.
Environment
db-migrate version: 0.11.6
no plugins used
db-migrate driver with versions: db-migrate-mysql 1.1.10
Additional information:
- Node version: v12.4.0
- Platform: Linux (but I assume this is not platform specific :) )
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm submitting a...
Current behavior
I am trying to use
db:create <dbname>
to create a new MySQL database. When thedatabase.json
is populated with connection information with thedatabase
specified the command fails stating that the database does not exist (doh! I am trying to create it!)Expected behavior
The
database
key indatabase.json
is ignored when runningdb:create
Minimal reproduction of the problem with instructions
Make sure the "todos" database does not exist in your MySQL database
database.json
Run
What is the motivation / use case for changing the behavior?
To be able to provide stable way to create and seed database for developers when they start working on the project.
Environment