drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Merge conflicting migrations

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

Description

### Describe what you want

A way to merge multiple migrations that have the same ID.
This issue might occur when multiple developers add migrations in parallel in different PRs. It must be fixed somehow because otherwise the migrations won't work.
Currently the only way to fix these conflicting migrations are manually. I suggest having a command that will fix it automatically.

Django does it with the command `makemigration --merge`: https://docs.djangoproject.com/en/5.0/ref/django-admin/#cmdoption-makemigrations-merge

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.