Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squash / Merge Migration Files #1134

Open
halorium opened this issue Aug 16, 2024 · 0 comments
Open

Squash / Merge Migration Files #1134

halorium opened this issue Aug 16, 2024 · 0 comments

Comments

@halorium
Copy link

I'd love a way to squash / merge the migrations into a single file (think of it like spring cleaning) once the list of migrations gets too long and unwieldy.

I did this once manually a long time ago and it was very time consuming and error prone.

Basically the current state of the db needs to be captured as a single up migration as well as any insert statements and the version table needs to be updated to that newly created migration.

I'd love to hear of any suggestions in the meantime.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant