Skip to content

Commit ac288f5

Browse files
fix migrations for v0.0.7 upgrade
1 parent 3545aca commit ac288f5

File tree

9 files changed

+25
-20
lines changed

9 files changed

+25
-20
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Follow the same dependency order agents use (see [`AGENTS.md`](./AGENTS.md)):
3434

3535
This repository packages the `netbox_proxbox` NetBox plugin. The plugin adds endpoint inventory for Proxmox, NetBox, and the companion ProxBox FastAPI backend; UI pages for sync operations and status checks; REST API endpoints for those models; and a small amount of browser-side JavaScript and styling for the plugin pages.
3636

37-
The current plugin config lives in [`netbox_proxbox/__init__.py`](./netbox_proxbox/__init__.py). It declares plugin version `0.0.8` and NetBox compatibility `4.5.0` through `4.5.99`.
37+
The current plugin config lives in [`netbox_proxbox/__init__.py`](./netbox_proxbox/__init__.py). It declares plugin version `0.0.9.post1` and NetBox compatibility `4.5.0` through `4.5.99`.
3838

3939
## Architecture Summary
4040

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Proxbox is a NetBox plugin that integrates Proxmox with NetBox through a separat
77
The current repository code declares support for:
88

99
- NetBox `4.5.x`
10-
- Plugin version `0.0.8` in source
10+
- Plugin version `0.0.9.post1` in source
1111

1212
That support comes directly from the plugin config in this repository:
1313

docs/installation/2-installing-plugin-git.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is the recommended installation path for the current repository state.
44

55
## Why This Is Recommended
66

7-
The code in this repository is `0.0.8` and targets NetBox `4.5.x`. That is the version line reflected by the docs in this repository.
7+
The code in this repository is `0.0.9.post1` and targets NetBox `4.5.x`. That is the version line reflected by the docs in this repository.
88

99
## Install
1010

llms.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ netbox-proxbox is a NetBox plugin that synchronizes Proxmox infrastructure data
2525

2626
### Version
2727

28-
- Plugin version: `0.0.8`
28+
- Plugin version: `0.0.9.post1`
2929
- NetBox compatibility: `4.5.0` through `4.5.99`
3030

3131
---
@@ -939,7 +939,7 @@ class ProxboxPluginConfig(PluginConfig):
939939
name = "netbox-proxbox"
940940
verbose_name = "Proxbox"
941941
description = "NetBox plugin for Proxmox integration"
942-
version = "0.0.8"
942+
version = "0.0.9.post1"
943943
author = "Emerson Felipe"
944944
author_email = "emersonfelipe.2003@gmail.com"
945945
min_version = "4.5.0"
@@ -1075,4 +1075,4 @@ context = get_fastapi_request_context() # Returns URLs and headers
10751075

10761076
---
10771077

1078-
*This file is designed for LLM context. For human-readable documentation, see README.md and DEVELOP.md.*
1078+
*This file is designed for LLM context. For human-readable documentation, see README.md and DEVELOP.md.*

netbox_proxbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ProxboxConfig(PluginConfig):
1717
name = "netbox_proxbox"
1818
verbose_name = "Proxbox"
1919
description = "Integrates Proxmox and Netbox"
20-
version = "0.0.9"
20+
version = "0.0.9.post1"
2121
author = "Emerson Felipe (@emersonfelipesp)"
2222
author_email = "emersonfelipe.2003@gmail.com"
2323
min_version = "4.5.0"

netbox_proxbox/migrations/0009_squashed_post_v006b2_to_v008.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Squashes netbox_proxbox migrations from v0.0.6b2.post1 (after 0008) through v0.0.8.
2-
# Replaces: 0009_vmbackup through 0015_remove_syncprocess (inclusive of merge migrations).
2+
# Replaces the historical 0009-0013 chain that shipped in v0.0.7.
33

44
import django.db.models.deletion
55
import netbox.models.deletion
@@ -18,8 +18,6 @@ class Migration(migrations.Migration):
1818
("netbox_proxbox", "0011_merge_20260328_1454"),
1919
("netbox_proxbox", "0012_merge_0011_merge_0010_heads_0011_merge_20260328_1454"),
2020
("netbox_proxbox", "0013_make_domains_optional_and_require_host_target"),
21-
("netbox_proxbox", "0014_vmsnapshot"),
22-
("netbox_proxbox", "0015_remove_syncprocess"),
2321
]
2422

2523
dependencies = [

netbox_proxbox/migrations/CLAUDE.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,32 @@ This directory contains Django schema migrations for the plugin models.
66

77
- **0001–0008:** Historical chain (VM resources → endpoint models and early sync metadata).
88
- **0009_squashed_post_v006b2_to_v008:** Single squashed migration (replaces the former
9-
`0009_vmbackup``0015_remove_syncprocess` chain). It adds `VMBackup`, NetBox v2 token
10-
fields, endpoint identity constraints, optional domains, `VMSnapshot`, and removes
11-
legacy sync-process storage. Use `python manage.py migrate netbox_proxbox` after upgrading from
12-
v0.0.6b2.post1 or any release that had only applied through **0008**.
9+
`0009_vmbackup``0013_make_domains_optional_and_require_host_target` chain from the
10+
pre-squash release line). It adds `VMBackup`, NetBox v2 token fields, endpoint identity
11+
constraints, optional domains, `VMSnapshot`, and removes legacy sync-process storage. Use
12+
`python manage.py migrate netbox_proxbox` after upgrading from v0.0.6b2.post1 or any release
13+
that had only applied through **0008**.
1314
- **0010_squashed_plugin_settings_and_storage:** Single squashed migration (replaces
1415
`0010_proxbox_plugin_settings`, `0011_proxmoxstorage`,
1516
`0012_proxboxpluginsettings_proxbox_fetch_max_concurrency`). It creates the
1617
`ProxboxPluginSettings` singleton model (including `proxbox_fetch_max_concurrency`) and
1718
`ProxmoxStorage`.
1819
- **0011_storage_relations:** Adds endpoint and virtualization relations to storage records.
19-
- **0012_vmtaskhistory:** Adds `VMTaskHistory` model.
20+
- **0012_fix_missing_storage_tables:** Repair migration that backfills storage and task-history
21+
tables or columns when older upgrade paths left them missing.
22+
- **0013_proxmoxstorage_cluster_foreignkey:** Converts `ProxmoxStorage.cluster` from a string
23+
to a foreign key to `virtualization.Cluster`.
24+
- **0014_alter_proxmoxstorage_options_and_more:** Updates `ProxmoxStorage` ordering and
25+
uniqueness after the foreign-key change.
26+
- **0015_alter_vmbackup_unique_together_alter_vmbackup_vmid_and_more:** Final cleanup for
27+
`VMBackup`, `VMSnapshot`, and `VMTaskHistory` field/state alignment.
2028

2129
## Squashing and upgrades
2230

2331
- The squashed migration lists `replaces = [...]` so Django treats databases that already
2432
applied the old individual migrations as up to date without re-running operations.
25-
- **Do not** apply this release if the old `netbox_proxbox` branch was only **partially**
26-
migrated past 0008 (some of 0009–0015 applied, not all). Finish the old chain first, or
27-
repair `django_migrations` per Django docs.
33+
- If an install was partially upgraded into the post-squash branch, use the repair migration
34+
chain in this directory rather than hand-editing `django_migrations`.
2835

2936
## Dependencies
3037

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "netbox-proxbox"
3-
version = "0.0.9"
3+
version = "0.0.9.post1"
44
description = "Netbox Plugin - Integrate Proxmox and Netbox"
55
readme = "README.md"
66
authors = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)