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

Cleanup migrations #5013

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Cleanup migrations #5013

wants to merge 10 commits into from

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Jan 10, 2025

Closes #4654

This cleans up the migrations that were squashed as part of the 3.0 release.

Obsolete RunPython operations have been removed since they are guaranteed to already have been executed as part of the 3.0 upgrade.

And convert the squashed migration to a regular migration.
Removed the replaced original migrations, converted the squashed
migratio to a regular migration and removed the RunPython operation
that's guaranteed to have been executed on Open Forms 3.0.x.
Removed the replaced original migrations, converted the squashed
migration to a regular migration and removed the RunPython operations
that are guaranteed to have been executed on Open Forms 3.0.x.
Removed the replaced original migrations, converted the squashed
migration to a regular migration.
Removed the replaced original migrations, converted the squashed
migration to a regular migration. The RunPython operations have
been removed since they're guaranteed to have been
executed on Open Forms 3.0.x.
Removed the replaced original migrations, converted the squashed
migration to a regular migration.
The data migrations that needed to be performed on older instances
are now removed, since the upgrade checks guarantee that they
have been executed during upgrades to 3.0.x. For new instances,
these operations were not relevant in the first place.

This allows us to remove migration test code which speeds up the
test suite and leads to less code to maintain.
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.62%. Comparing base (2402531) to head (01516cd).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5013      +/-   ##
==========================================
- Coverage   96.66%   96.62%   -0.05%     
==========================================
  Files         761      761              
  Lines       25959    25958       -1     
  Branches     3394     3394              
==========================================
- Hits        25093    25081      -12     
- Misses        601      611      +10     
- Partials      265      266       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Now that all migration tests are removed and migrations are squashed,
we should be able to perform this schema migration.
Upgrading from 2.8.x directly is not possible.
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

Successfully merging this pull request may close these issues.

Remove ObjectsAPIGroupConfig model's Meta.db_table attribute
1 participant