Open fyliu opened 6 months ago
Please provide update
Progress: Haven't started yet Blockers: None yet Availability: Weekend ETA: Over the weekend or early next week
10/16/2024 Update: Progress: Still haven't started yet. Thinking of dropping this task for now unless there's objections. Blockers: None yet Availability: Weekend ETA: N/A
Dependencies
385
Overview
We need to add documentation for how to combine migrations before merging a PR for the benefit of developers so that they can refer to the guide as needed.
Action Items
Instructions
When doing PRs involving django models, sometimes the requested changes cause django to generate more migration files. To keep things simpler, it's recommended to combine migrations as much as possible at the end of the PR process so that there's one or very few migrations to merge. Follow these steps to merge all the PR migrations into one.
Check the new migrations created for the PR
Let's say the PR created 0022-0027 in the core app
Undo the migrations back to before the PR
Delete the migration files
Reset the max_migration.txt back to before the PR branch (assuming that's the current
upstream/main
)Generate the combined migration file and apply it