Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2023 06:38:33 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 98a406d77e3a - main - security/py-netbox-secretstore: Fix missing database migrations
Message-ID:  <202303170638.32H6cXcb088150@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98a406d77e3a56c54ac51e1d128ad375e2a2d133

commit 98a406d77e3a56c54ac51e1d128ad375e2a2d133
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-03-17 06:36:19 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-03-17 06:37:07 +0000

    security/py-netbox-secretstore: Fix missing database migrations
    
    * Backport a patch that fixes missing database migrations.
    
    * Bump PORTREVISION due changed package.
    
    MFH:            No (not applicable for netbox-secretstore < 1.4.0)
---
 security/py-netbox-secretstore/Makefile            |  1 +
 ...lter__secret__custom__field__data__and__more.py | 35 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/security/py-netbox-secretstore/Makefile b/security/py-netbox-secretstore/Makefile
index 1e673017fbd3..6aeed0a86090 100644
--- a/security/py-netbox-secretstore/Makefile
+++ b/security/py-netbox-secretstore/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	netbox-secretstore
 DISTVERSION=	1.4.1
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/security/py-netbox-secretstore/files/patch-netbox__secretstore_migrations_0006__alter__secret__custom__field__data__and__more.py b/security/py-netbox-secretstore/files/patch-netbox__secretstore_migrations_0006__alter__secret__custom__field__data__and__more.py
new file mode 100644
index 000000000000..ba6e41dd0b31
--- /dev/null
+++ b/security/py-netbox-secretstore/files/patch-netbox__secretstore_migrations_0006__alter__secret__custom__field__data__and__more.py
@@ -0,0 +1,35 @@
+From: Daniel Sheppard <dans@dansheps.com>
+Date: Tue, 24 Jan 2023 13:51:57 -0600
+Subject: [PATCH] Update for missing migrations
+
+Obtained from:
+
+https://github.com/DanSheps/netbox-secretstore/commit/9c3f69e5af6f5e8d6af11f5c8ea41433ef51145c
+
+--- netbox_secretstore/migrations/0006_alter_secret_custom_field_data_and_more.py.orig	2023-03-16 06:29:56 UTC
++++ netbox_secretstore/migrations/0006_alter_secret_custom_field_data_and_more.py
+@@ -0,0 +1,24 @@
++# Generated by Django 4.1.4 on 2023-01-24 19:50
++
++from django.db import migrations, models
++import utilities.json
++
++
++class Migration(migrations.Migration):
++
++    dependencies = [
++        ('netbox_secretstore', '0005_alter_secret_created_alter_secret_id_and_more'),
++    ]
++
++    operations = [
++        migrations.AlterField(
++            model_name='secret',
++            name='custom_field_data',
++            field=models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
++        ),
++        migrations.AlterField(
++            model_name='secretrole',
++            name='custom_field_data',
++            field=models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
++        ),
++    ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303170638.32H6cXcb088150>