Skip to content

Add init optionality #339

@wzrdtales

Description

@wzrdtales

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

  • New command line option


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions