[PR #14927] [MERGED] Closes #13647: Squash migrations #14490

Closed
opened 2025-12-29 23:24:46 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14927
Author: @jeremystretch
Created: 1/24/2024
Status: Merged
Merged: 1/25/2024
Merged by: @jeremystretch

Base: featureHead: 13647-squash-migrations-2


📝 Commits (1)

📊 Changes

176 files changed (+3718 additions, -6314 deletions)

View changed files

netbox/circuits/migrations/0003_extend_tag_support.py (+0 -20)
netbox/circuits/migrations/0003_squashed_0037.py (+127 -0)
netbox/circuits/migrations/0004_rename_cable_peer.py (+0 -21)
netbox/circuits/migrations/0032_provider_service_id.py (+0 -17)
netbox/circuits/migrations/0033_standardize_id_fields.py (+0 -44)
netbox/circuits/migrations/0034_created_datetimefield.py (+0 -38)
netbox/circuits/migrations/0035_provider_asns.py (+0 -19)
netbox/circuits/migrations/0036_circuit_termination_date_tags_custom_fields.py (+0 -28)
netbox/circuits/migrations/0037_new_cabling_models.py (+0 -16)
netbox/circuits/migrations/0038_cabling_cleanup.py (+0 -20)
📝 netbox/circuits/migrations/0038_squashed_0042.py (+70 -36)
netbox/circuits/migrations/0039_unique_constraints.py (+0 -39)
netbox/circuits/migrations/0040_provider_remove_deprecated_fields.py (+0 -59)
netbox/circuits/migrations/0041_standardize_description_comments.py (+0 -18)
📝 netbox/core/migrations/0001_squashed_0005.py (+65 -9)
netbox/core/migrations/0002_managedfile.py (+0 -40)
netbox/core/migrations/0003_job.py (+0 -39)
netbox/core/migrations/0004_replicate_jobresults.py (+0 -46)
netbox/core/migrations/0005_job_created_auto_now.py (+0 -18)
netbox/dcim/migrations/0131_consoleport_speed.py (+0 -21)

...and 80 more files

📄 Description

Fixes: #13647

Since the approach in PR #14853 left us with discrepancies in the migration tree when migrating from a previous database, I've opted to manually squash the migrations here. Unfortunately, the performance gains here aren't as impressive, however all testing has been successful.

It may be possible to further optimize individual migrations, but it's likely not worth the time and effort.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/14927 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/24/2024 **Status:** ✅ Merged **Merged:** 1/25/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13647-squash-migrations-2` --- ### 📝 Commits (1) - [`f906e79`](https://github.com/netbox-community/netbox/commit/f906e790c41787d2de8a5fcbf27bce6302cc4322) Squash migrations ### 📊 Changes **176 files changed** (+3718 additions, -6314 deletions) <details> <summary>View changed files</summary> ➖ `netbox/circuits/migrations/0003_extend_tag_support.py` (+0 -20) ➕ `netbox/circuits/migrations/0003_squashed_0037.py` (+127 -0) ➖ `netbox/circuits/migrations/0004_rename_cable_peer.py` (+0 -21) ➖ `netbox/circuits/migrations/0032_provider_service_id.py` (+0 -17) ➖ `netbox/circuits/migrations/0033_standardize_id_fields.py` (+0 -44) ➖ `netbox/circuits/migrations/0034_created_datetimefield.py` (+0 -38) ➖ `netbox/circuits/migrations/0035_provider_asns.py` (+0 -19) ➖ `netbox/circuits/migrations/0036_circuit_termination_date_tags_custom_fields.py` (+0 -28) ➖ `netbox/circuits/migrations/0037_new_cabling_models.py` (+0 -16) ➖ `netbox/circuits/migrations/0038_cabling_cleanup.py` (+0 -20) 📝 `netbox/circuits/migrations/0038_squashed_0042.py` (+70 -36) ➖ `netbox/circuits/migrations/0039_unique_constraints.py` (+0 -39) ➖ `netbox/circuits/migrations/0040_provider_remove_deprecated_fields.py` (+0 -59) ➖ `netbox/circuits/migrations/0041_standardize_description_comments.py` (+0 -18) 📝 `netbox/core/migrations/0001_squashed_0005.py` (+65 -9) ➖ `netbox/core/migrations/0002_managedfile.py` (+0 -40) ➖ `netbox/core/migrations/0003_job.py` (+0 -39) ➖ `netbox/core/migrations/0004_replicate_jobresults.py` (+0 -46) ➖ `netbox/core/migrations/0005_job_created_auto_now.py` (+0 -18) ➖ `netbox/dcim/migrations/0131_consoleport_speed.py` (+0 -21) _...and 80 more files_ </details> ### 📄 Description ### Fixes: #13647 Since the approach in PR #14853 left us with discrepancies in the migration tree when migrating from a previous database, I've opted to manually squash the migrations here. Unfortunately, the performance gains here aren't as impressive, however all testing has been successful. It may be possible to further optimize individual migrations, but it's likely not worth the time and effort. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:46 +01:00
adam closed this issue 2025-12-29 23:24:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14490