db-migrate / db-migrate/node-db-migrate

Support "databaseless" execution commands

Open
#338 1 comment 2 reactions 0 assignees View on GitHub
feature good first issue help wanted
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

# 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 https://github.com/db-migrate/pg/issues/5.
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29956197-support-databaseless-execution-commands?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.