From 049fb045c0834be366f15b5bf2d487733f9d649c Mon Sep 17 00:00:00 2001 From: Hedde van der Heide Date: Fri, 15 Apr 2022 09:06:28 +0200 Subject: [PATCH] added missing migrations (though stale) --- src/README.rst | 6 ++- .../migrations/0004_auto_20220415_0705.py | 46 +++++++++++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 src/netbox_slm/migrations/0004_auto_20220415_0705.py diff --git a/src/README.rst b/src/README.rst index a6df6c1..0b9bb76 100644 --- a/src/README.rst +++ b/src/README.rst @@ -9,6 +9,8 @@ Software Lifecycle Management Installation Guide ~~~~~~~~~~~~~~~~~~ +WARNING: This plugin is only tested with Netbox 3.2 at this time. + When using the Docker version of Netbox, first follow the `netbox-docker quickstart `__ instructions to clone the netbox-docker repo and set up the @@ -20,13 +22,13 @@ to install the Netbox SLM plugin: 1. Add ``netbox_slm`` to the ``PLUGINS`` list in ``configuration/extra.py``. -2. Create a ``plugin_requirements.txt`` with ``netbox-slm==0.94`` as +2. Create a ``plugin_requirements.txt`` with ``netbox-slm==0.97`` as contents. 3. Create a ``Dockerfile-SLM`` with contents: .. code:: dockerfile - FROM netboxcommunity/netbox:v3.X.X + FROM netboxcommunity/netbox:v3.2.X COPY ./plugin_requirements.txt / RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt diff --git a/src/netbox_slm/migrations/0004_auto_20220415_0705.py b/src/netbox_slm/migrations/0004_auto_20220415_0705.py new file mode 100644 index 0000000..add1fc7 --- /dev/null +++ b/src/netbox_slm/migrations/0004_auto_20220415_0705.py @@ -0,0 +1,46 @@ +# Generated by Django 3.2.9 on 2022-04-15 07:05 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dcim', '0153_created_datetimefield'), + ('virtualization', '0029_created_datetimefield'), + ('netbox_slm', '0003_auto_20220407_1209'), + ] + + operations = [ + migrations.AlterField( + model_name='softwareproduct', + name='manufacturer', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.manufacturer'), + ), + migrations.AlterField( + model_name='softwareproductinstallation', + name='device', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='dcim.device'), + ), + migrations.AlterField( + model_name='softwareproductinstallation', + name='software_product', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='netbox_slm.softwareproduct'), + ), + migrations.AlterField( + model_name='softwareproductinstallation', + name='version', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='netbox_slm.softwareproductversion'), + ), + migrations.AlterField( + model_name='softwareproductinstallation', + name='virtualmachine', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='virtualization.virtualmachine'), + ), + migrations.AlterField( + model_name='softwareproductversion', + name='software_product', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='netbox_slm.softwareproduct'), + ), + ]