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

Feature Request: Transaction configuration on a per migration basis

Open
#659 5 comments 3 reactions 1 assignee Claimed by @wzrdtales 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

## I'm submitting a...

- [ ] Bug report
- [x] 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.

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.