Skip to content

Squashing Migrations #792

@winsmith

Description

@winsmith

Please summarize your feature request

Over the years, my project has accumulated hundreds of migrations, and I'd like to combine them into as few as possible.

Describe the functionality you're seeking in more detail

Django's ORM has this fantastic concept of squashing migrations where you can combine existing migrations into just one. This speeds up development and removes log clutter during tests.

I'd love to have this functionality in Fluent as well. I don't think it's possible to automatically create squashed migrations, but just replacing 100 migrations that add or modify a field each on my model with just one migration would be awesome.

Have you considered any alternatives?

I've considered just writing new migrations and removing the old ones, but I'm unsure how the metadata stored in the _fluent_migrations table would deal with this. Are there any hidden dangers of just replacing the migrations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions