db-migrate / db-migrate/node-db-migrate
[question] squashing migrations into one file (as a dev process)
Open
- 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
Assessment
This issue has not been assessed yet.