Explorar o código

Add schema migrations to plugins installation doc

Jeremy Stretch %!s(int64=5) %!d(string=hai) anos
pai
achega
0d01a3fce8
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      docs/plugins/index.md

+ 9 - 0
docs/plugins/index.md

@@ -64,6 +64,15 @@ PLUGINS_CONFIG = {
 }
 }
 ```
 ```
 
 
+### Run Database Migrations
+
+If the plugin introduces new database models, run the provided schema migrations:
+
+```no-highlight
+(venv) $ cd /opt/netbox/netbox/
+(venv) $ python3 manage.py migrate
+```
+
 ### Collect Static Files
 ### Collect Static Files
 
 
 Plugins may package static files to be served directly by the HTTP front end. Ensure that these are copied to the static root directory with the `collectstatic` management command:
 Plugins may package static files to be served directly by the HTTP front end. Ensure that these are copied to the static root directory with the `collectstatic` management command: