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

[question] squashing migrations into one file (as a dev process)

Open
#739 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

## I'm submitting a...

- [ ] Bug report
- [ ] Feature request
- [x] Question

## Current behavior

After some time I want would want to squash all migrations into one file, let alone for searching experience because old migrations become less of interest.

The process would be similar to e.g. `pg_dump`-ing a new migration and just remove all files. However, pg_dump is vastly environment specific and adds boilerplate only relevant to `pg_dump`.

Ideally just all files get concatenated and will also not be run on **next** mig.

Q: Is there any functionality already existing? Or any procedure like this known?

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.