From 7951ed29a4fa3aaa964b4001666d45917c79f9a3 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Tue, 27 Jan 2026 14:59:29 +0100 Subject: [PATCH] :rewind: Re-add migration to add linkable_to_zaken and migration to remove it because 3.4.0 included migration 0019 to add linkable_to_zaken, simply reverting it and removing the migration could cause issues, so instead it's kept and an explicit migration to remove the field is added --- .../0019_objecttype_linkable_to_zaken.py | 21 +++++++++++++++++++ ...020_remove_objecttype_linkable_to_zaken.py | 17 +++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/objecttypes/core/migrations/0019_objecttype_linkable_to_zaken.py create mode 100644 src/objecttypes/core/migrations/0020_remove_objecttype_linkable_to_zaken.py diff --git a/src/objecttypes/core/migrations/0019_objecttype_linkable_to_zaken.py b/src/objecttypes/core/migrations/0019_objecttype_linkable_to_zaken.py new file mode 100644 index 00000000..f85ecea3 --- /dev/null +++ b/src/objecttypes/core/migrations/0019_objecttype_linkable_to_zaken.py @@ -0,0 +1,21 @@ +# Generated by Django 5.2.7 on 2025-11-13 14:37 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("core", "0018_auto_20230207_1401"), + ] + + operations = [ + migrations.AddField( + model_name="objecttype", + name="linkable_to_zaken", + field=models.BooleanField( + default=False, + help_text="Objects of this type can have a link to 1 or more Zaken.\nTrue indicates the lifetime of the object is linked to the lifetime of linked zaken, i.e., when all linked Zaken to an object are archived/destroyed, the object will also be archived/destroyed.", + verbose_name="linkable to zaken", + ), + ), + ] \ No newline at end of file diff --git a/src/objecttypes/core/migrations/0020_remove_objecttype_linkable_to_zaken.py b/src/objecttypes/core/migrations/0020_remove_objecttype_linkable_to_zaken.py new file mode 100644 index 00000000..e539382e --- /dev/null +++ b/src/objecttypes/core/migrations/0020_remove_objecttype_linkable_to_zaken.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2.8 on 2026-01-27 13:57 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0019_objecttype_linkable_to_zaken'), + ] + + operations = [ + migrations.RemoveField( + model_name='objecttype', + name='linkable_to_zaken', + ), + ]