Skip to content

Support "databaseless" execution commands #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wzrdtales opened this issue Jan 17, 2016 · 1 comment
Open

Support "databaseless" execution commands #338

wzrdtales opened this issue Jan 17, 2016 · 1 comment

Comments

@wzrdtales
Copy link
Member

wzrdtales commented Jan 17, 2016

Current behavior

When a driver initiates a connection it gets passed the config and uses this straightforward. This creates a problem as soon as commands like db:create and db:drop are about to be executed. Those have no need to be actually be connected to a database directly and this in turn might result in issues while connecting to this database which may not exists already.

Proposed solution

On commands that can omit the database parameter those are going to be stripped away by db-migrate before they actually reach the driver.
The drivers in turn have to assure that they handle the default behavior correctly. There are for example open items for postgres db-migrate/pg#5.


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

@charyorde
Copy link

+1. This should work since all we need is to establish a connection. From there on, migration tasks can leverage this connection to create migration-specific databases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants