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

Archiving old migrations #50

Open
jackc opened this issue Apr 15, 2022 · 2 comments
Open

Archiving old migrations #50

jackc opened this issue Apr 15, 2022 · 2 comments

Comments

@jackc
Copy link
Owner

jackc commented Apr 15, 2022

After hundreds of migrations the migrations directory can get a little awkward to scroll through. It would be nice to have some way to move old migrations to a subdirectory to get them out of the way.

@T-J-L
Copy link

T-J-L commented Apr 18, 2022

It’s probably out of scope for this library, but what would be neat is to perform a roll-up of changes. E.g., apply 1-n schema changes, snapshot the complete schema, replace 1-n individual migrations with the snapshot.

I’ve thought about doing it myself manually, as when iterating on a new product I’ve got many migrations that negate earlier ones etc.

@jackc
Copy link
Owner Author

jackc commented Apr 21, 2022

I made a separate issue for roll up migrations #52. I've also done that by hand before and a feature to do it would be nice, but it has some tricky edge cases.

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

2 participants