This directory contains Django schema migrations for the plugin models.
- 0001–0008: Historical chain (VM resources → endpoint models and early sync metadata).
- 0009_squashed_post_v006b2_to_v008: Single squashed migration (replaces the former
0009_vmbackup…0013_make_domains_optional_and_require_host_targetchain from the pre-squash release line). It addsVMBackup, NetBox v2 token fields, endpoint identity constraints, optional domains,VMSnapshot, and removes legacy sync-process storage. Usepython manage.py migrate netbox_proxboxafter upgrading from v0.0.6b2.post1 or any release that had only applied through 0008. - 0010_squashed_plugin_settings_and_storage: Single squashed migration (replaces
0010_proxbox_plugin_settings,0011_proxmoxstorage,0012_proxboxpluginsettings_proxbox_fetch_max_concurrency). It creates theProxboxPluginSettingssingleton model (includingproxbox_fetch_max_concurrency) andProxmoxStorage. On upgrades from the oldv0.0.7chain, it also backfills the missingVMSnapshottable before adding storage relations. - 0011_storage_relations: Adds endpoint and virtualization relations to storage records.
- 0012_fix_missing_storage_tables: Repair migration that backfills storage and task-history tables or columns when older upgrade paths left them missing.
- 0013_proxmoxstorage_cluster_foreignkey: Converts
ProxmoxStorage.clusterfrom a string to a foreign key tovirtualization.Cluster. - 0014_alter_proxmoxstorage_options_and_more: Updates
ProxmoxStorageordering and uniqueness after the foreign-key change. - 0015_alter_vmbackup_unique_together_alter_vmbackup_vmid_and_more: Final cleanup for
VMBackup,VMSnapshot, andVMTaskHistoryfield/state alignment.
- The squashed migration lists
replaces = [...]so Django treats databases that already applied the old individual migrations as up to date without re-running operations. - If an install was partially upgraded into the post-squash branch, use the repair migration
chain in this directory rather than hand-editing
django_migrations.
- Inbound: Django migration runner uses these files during install and upgrade.
- Outbound: each migration depends on the historical state of
netbox_proxbox.modelsand relevant NetBox app migrations (seedependenciesin each file).
- Review this directory before changing model fields or uniqueness rules.
- Parent:
../CLAUDE.md