[PR #4546] [CLOSED] Fix running database migrations for a database from the version 2.2.6 to 2.8.1 that is broken because of ipam 0026-to-0032 squashed migration #12867

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4546
Author: @Psycojoker
Created: 4/27/2020
Status: Closed

Base: developHead: develop


📝 Commits (1)

  • 0a64463 ipam squashed 0026-to-0032 migration was breaking old db

📊 Changes

1 file changed (+0 additions, -140 deletions)

View changed files

netbox/ipam/migrations/0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description.py (+0 -140)

📄 Description

Fixes: 4545

Hello,

This fixes the issues #4545 with the solution described in the issue. As a reminder:

  • the squased migration 0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description fails on a database from 2.2.6 but running the unsquased migrations works.

Kind regards,


🔄 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/4546 **Author:** [@Psycojoker](https://github.com/Psycojoker) **Created:** 4/27/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`0a64463`](https://github.com/netbox-community/netbox/commit/0a64463ccc729ef5332c549b2b1881e7a7d4ee5a) ipam squashed 0026-to-0032 migration was breaking old db ### 📊 Changes **1 file changed** (+0 additions, -140 deletions) <details> <summary>View changed files</summary> ➖ `netbox/ipam/migrations/0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description.py` (+0 -140) </details> ### 📄 Description ### Fixes: 4545 Hello, This fixes the issues #4545 with the solution described in the issue. As a reminder: * the squased migration 0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description fails on a database from 2.2.6 but running the unsquased migrations works. Kind regards, --- <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:24:04 +01:00
adam closed this issue 2025-12-29 22:24:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12867