[PR #15779] [MERGED] 15764 change vc_position from PositiveSmallInteger to PositiveInteger #14676

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15779
Author: @arthanson
Created: 4/19/2024
Status: Merged
Merged: 4/19/2024
Merged by: @jeremystretch

Base: featureHead: 15764-vc-position


📝 Commits (1)

  • 48907bc 15764 change vc_position from PositiveSmallInteger to PositiveInteger

📊 Changes

2 files changed (+19 additions, -2 deletions)

View changed files

netbox/dcim/migrations/0187_alter_device_vc_position.py (+18 -0)
📝 netbox/dcim/models/devices.py (+1 -2)

📄 Description

Fixes: #15764

Change vc_position from PositiveSmallInteger to PositiveInteger - form field and serializer are already IntegerField so no changes needed there.

Note: We had talked about min-value of 1, but there was no min-value currently on the field and the serializer has min-value of 0 so it's possible someone already has 0 in the DB so didn't want to change.


🔄 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/15779 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 4/19/2024 **Status:** ✅ Merged **Merged:** 4/19/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `15764-vc-position` --- ### 📝 Commits (1) - [`48907bc`](https://github.com/netbox-community/netbox/commit/48907bcf2eb7ec3743e7c59b43b81154d0b417f2) 15764 change vc_position from PositiveSmallInteger to PositiveInteger ### 📊 Changes **2 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `netbox/dcim/migrations/0187_alter_device_vc_position.py` (+18 -0) 📝 `netbox/dcim/models/devices.py` (+1 -2) </details> ### 📄 Description ### Fixes: #15764 Change vc_position from PositiveSmallInteger to PositiveInteger - form field and serializer are already IntegerField so no changes needed there. Note: We had talked about min-value of 1, but there was no min-value currently on the field and the serializer has min-value of 0 so it's possible someone already has 0 in the DB so didn't want to change. --- <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:25:55 +01:00
adam closed this issue 2025-12-29 23:25:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14676