db-migrate/node-db-migrate

Feature Request: Transaction configuration on a per migration basis

開放

#659 建立於 2019年12月11日

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

倉庫指標

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

描述

I'm submitting a...

  • Bug report
  • Feature request
  • Question

Current behavior

There is no way to turn off transactions for individual migrations.

Expected behavior

Certain migrations need to be run outside of a transaction. For example, in PostgreSQL, ALTER TYPE type_name ADD new_value cannot be run in a transaction. The rest of the migrations, however should be run in a transaction. There is currently no way to configure individual migrations to not use a transaction block. It would be extremely helpful to allow this to be part of the configuration for a single migration.

貢獻者指南