Description
NetBox version
v4.0.8
Feature type
Change to existing functionality
Proposed functionality
When an instance of NetBox is set to 'readonly', then the upgrade.sh should not perform any write operations to the database.
This can be either done by an 'option' (./upgrade.sh readony) or by a setting in the configuration.py that is read out.
Use case
I have 2 instances of my netbox running. One production with a write-enabled database and one for DR.
The database is replicated using postgres WAL into the DR location.
There the database is readonly for NetBox.
When I want upgrade the DR instance, I have to modify the upgrade.sh, so that all database commands are excluded (migrations, trace_paths, reindex, clearsessions, clearcache).
Database changes
No response
External dependencies
No response