[PR #13643] [MERGED] Fixes #13642: Move migration logic overrides from individual management commands to core #14232

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13643
Author: @jeremystretch
Created: 8/31/2023
Status: Merged
Merged: 8/31/2023
Merged by: @jeremystretch

Base: developHead: 13642-migrations-warning


📝 Commits (1)

  • 32f4b70 Fixes #13642: Move migration logic overrides from individual mgmt commands to core

📊 Changes

3 files changed (+11 additions, -19 deletions)

View changed files

📝 netbox/core/apps.py (+11 -0)
📝 netbox/core/management/commands/makemigrations.py (+0 -12)
netbox/core/management/commands/migrate.py (+0 -7)

📄 Description

Fixes: #13642

Move our customizations of AlterModelOptions and models.Field.deconstruct from the individual migrate and makemigrations management commands to the core app. This ensures that the AlterModelOptions changes go into effect for both commands while reducing duplicate code.


🔄 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/13643 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/31/2023 **Status:** ✅ Merged **Merged:** 8/31/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13642-migrations-warning` --- ### 📝 Commits (1) - [`32f4b70`](https://github.com/netbox-community/netbox/commit/32f4b7018a5a24bb5125e53a8a234b26094e9320) Fixes #13642: Move migration logic overrides from individual mgmt commands to core ### 📊 Changes **3 files changed** (+11 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/apps.py` (+11 -0) 📝 `netbox/core/management/commands/makemigrations.py` (+0 -12) ➖ `netbox/core/management/commands/migrate.py` (+0 -7) </details> ### 📄 Description ### Fixes: #13642 Move our customizations of `AlterModelOptions` and `models.Field.deconstruct` from the individual `migrate` and `makemigrations` management commands to the core app. This ensures that the `AlterModelOptions` changes go into effect for both commands while reducing duplicate code. --- <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:23:19 +01:00
adam closed this issue 2025-12-29 23:23:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14232