Current behavior
If db-migrate tries to connect to a database that does not yet exists it is going to throw an error. The user needs to create the database with fitting permissions first.
Proposed solution
Add a command line option --init which tells db-migrate to first check if the database exists and then tries to execute a database execution. This tasks has items listed below.
Affected drivers
All: New method showDatabases is needed
Items:
API extensions
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Current behavior
If db-migrate tries to connect to a database that does not yet exists it is going to throw an error. The user needs to create the database with fitting permissions first.
Proposed solution
Add a command line option
--initwhich tells db-migrate to first check if the database exists and then tries to execute a database execution. This tasks has items listed below.Affected drivers
All: New method
showDatabasesis neededItems:
API extensions
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.