db-migrate/node-db-migrate

Support "databaseless" execution commands

開放

#338 建立於 2016年1月17日

 (1 則留言) (2 個反應) (0 位負責人)JavaScript (367 個分叉)batch import
featuregood first issuehelp wanted

倉庫指標

星標
 (2,296 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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! We accept bounties via Bountysource.

貢獻者指南