[PR #20314] [MERGED] Fixes #20290: Fix ordering of migrations to support upgrading from v3.7 #15888

Closed
opened 2025-12-30 00:24:37 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20314
Author: @jeremystretch
Created: 9/10/2025
Status: Merged
Merged: 9/11/2025
Merged by: @bctiemann

Base: mainHead: 20290-fix-migration


📝 Commits (1)

  • a99e21a Fixes #20290: Fix ordering of migrations to support upgrading from v3.7

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 netbox/users/migrations/0005_alter_user_table.py (+2 -1)

📄 Description

Fixes: #20290

Reorders migrations to avoid an UndefinedTable exception when upgrading directly to NetBox v4.4 from v3.7.

Thanks to @pheus for identifying the fix!


🔄 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/20314 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 9/10/2025 **Status:** ✅ Merged **Merged:** 9/11/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `20290-fix-migration` --- ### 📝 Commits (1) - [`a99e21a`](https://github.com/netbox-community/netbox/commit/a99e21afd665ebba88a67b41ad8047dcc1c04b7f) Fixes #20290: Fix ordering of migrations to support upgrading from v3.7 ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/users/migrations/0005_alter_user_table.py` (+2 -1) </details> ### 📄 Description ### Fixes: #20290 Reorders migrations to avoid an `UndefinedTable` exception when upgrading directly to NetBox v4.4 from v3.7. Thanks to @pheus for [identifying the fix](https://github.com/netbox-community/netbox/issues/20290#issuecomment-3263602845)! --- <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-30 00:24:37 +01:00
adam closed this issue 2025-12-30 00:24:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15888