drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Migration Squashing

Open
#4,897 4 comments 10 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Feature hasn't been suggested before.

- [x] I have verified this feature I'm about to request hasn't been suggested before.

### Describe the enhancement you want to request

Sometimes, during development on a feature branch, we end up making multiple migrations as we iterate on schema design. However, this results in many migration files rather than one per PR.

It would be helpful if the drizzle-kit CLI had a "squash" command that allowed us to combine multiple migrations before merging them with our main branch.

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.