Add migrations for removing views and materialized views#106
Merged
Conversation
e40b35b to
a782ddd
Compare
Coverage Report •
|
||||||||||||||||||||||||||||||||||||||||||||||||||
a782ddd to
a049030
Compare
mikicz
commented
Jan 2, 2026
mikicz
commented
Jan 2, 2026
mikicz
commented
Jan 2, 2026
a049030 to
bb18739
Compare
The project requires OperationCategory which got added in Django 5.1
bb18739 to
bfe1328
Compare
almeida-raphael
approved these changes
Jan 2, 2026
|
There is a few things I would prefer to be type hinted that are not, other than that all good to go |
|
Since it is minor you might chose to ignore, that is why I approved |
Collaborator
Author
Pyrefly is not complaining 🤷 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This hooks into the migration system to register views into state, and then using that we can detect that a view was renamed / deleted / changed between types of view, so we can drop the mat views.
The register is only a state operation for now, handling view creation remains the same.
Fixes #34
Fixes #59 (not automatic but adds a nice solution)