[PR #4032] [MERGED] Fixes #4027: Repair schema migration for IP addresses with DHCP status #12740

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4032
Author: @jeremystretch
Created: 1/28/2020
Status: Merged
Merged: 1/28/2020
Merged by: @jeremystretch

Base: developHead: 4027-ipaddress-migration


📝 Commits (1)

  • 9b9e568 Fixes #4027: Repair schema migration for #3569 to convert IP addresses with DHCP status

📊 Changes

3 files changed (+23 additions, -1 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+1 -0)
📝 netbox/ipam/migrations/0029_3569_ipaddress_fields.py (+1 -1)
netbox/ipam/migrations/0034_fix_ipaddress_status_dhcp.py (+21 -0)

📄 Description

Fixes: #4027

  • Fix the original schema migration (for consistency)
  • Introduce a new migration under IPAM to apply the change for users who have already upgraded. (This has no effect if all instances with status=5 have already been updated.)

🔄 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/4032 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/28/2020 **Status:** ✅ Merged **Merged:** 1/28/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4027-ipaddress-migration` --- ### 📝 Commits (1) - [`9b9e568`](https://github.com/netbox-community/netbox/commit/9b9e5684460efc68a851407befc7a58015747c32) Fixes #4027: Repair schema migration for #3569 to convert IP addresses with DHCP status ### 📊 Changes **3 files changed** (+23 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+1 -0) 📝 `netbox/ipam/migrations/0029_3569_ipaddress_fields.py` (+1 -1) ➕ `netbox/ipam/migrations/0034_fix_ipaddress_status_dhcp.py` (+21 -0) </details> ### 📄 Description ### Fixes: #4027 - Fix the original schema migration (for consistency) - Introduce a new migration under IPAM to apply the change for users who have already upgraded. (This has no effect if all instances with `status=5` have already been updated.) --- <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 22:23:21 +01:00
adam closed this issue 2025-12-29 22:23:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12740