-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement DATABASE_ENGINE Configuration Parameter #11791
Comments
If approved, I am happy to take ownership and complete the PR for this feature. This would allow plugins like this to be used: https://github.com/wholesailnetworks/netbox-geo |
Just a minor note: We probably want to add an
To confirm, this would default to I don't believe there's anything precluding this from being implemented in v3.4, so I'll assign it you @nick-bogle. Thanks! |
@nick-bogle are you still planning to work on this? |
* adds ENGINE to database config #11791 * fixed lint issues * updated doc
NetBox version
v3.4.4
Feature type
New functionality
Proposed functionality
I am proposing introduction of a DATABASE_ENGINE parameter, which would allow overwriting the default database engine of 'django.contrib.gis.db.backends.postgresql' to a custom database backend.
This would be an optional configuration parameter within the configuration.py file. In the event METRICS_ENABLED was also set, I propose we give the DATABASE_ENGINE option priority. If DATABASE_ENGINE is not set, and METRICS_ENABLED is set to True, then the database engine would be set to 'django_prometheus.db.backends.postgresql'
Use case
This would allow extending the netbox datamodel with different Postgres database extensions, for example to support PostGIS to allow geospatial data models.
Database changes
No database changes.
External dependencies
No external dependencies until a database engine was overwritten, in which case that engine may potentially have external dependencies.
The text was updated successfully, but these errors were encountered: