From b0e95e6a3e4f07de0102114637dd1cb69912ba6e Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Sat, 6 Jul 2024 00:09:26 +0200 Subject: [PATCH] Rename app by changing the app label The new package app label conflicts with this one, so we have to update this package app label and then next run an SQL update to doctor the migrations that were already executed. --- src/digid_eherkenning_oidc_generics/apps.py | 2 +- .../migrations/0001_legacy.py | 12 +++++++----- .../migrations/0002_auto_20240109_1055.py | 2 +- ...idconnectdigidconfig_oidc_exempt_urls_and_more.py | 3 ++- ..._alter_openidconnectdigidconfig_table_and_more.py | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/digid_eherkenning_oidc_generics/apps.py b/src/digid_eherkenning_oidc_generics/apps.py index 5747769bff..a843252f32 100644 --- a/src/digid_eherkenning_oidc_generics/apps.py +++ b/src/digid_eherkenning_oidc_generics/apps.py @@ -5,4 +5,4 @@ class DigiDeHerkenningOIDCAppConfig(AppConfig): name = "digid_eherkenning_oidc_generics" verbose_name = _("DigiD & eHerkenning via OpenID Connect") - # label = "digid_eherkenning_oidc_generics_legacy" + label = "digid_eherkenning_oidc_generics_legacy" diff --git a/src/digid_eherkenning_oidc_generics/migrations/0001_legacy.py b/src/digid_eherkenning_oidc_generics/migrations/0001_legacy.py index a1afc099b1..3acbcceacc 100644 --- a/src/digid_eherkenning_oidc_generics/migrations/0001_legacy.py +++ b/src/digid_eherkenning_oidc_generics/migrations/0001_legacy.py @@ -12,22 +12,24 @@ # Generated by Django 4.2.11 on 2024-07-05 21:21 -import digid_eherkenning_oidc_generics.models from django.db import migrations, models + import django_jsonform.models.fields +import digid_eherkenning_oidc_generics.models + class Migration(migrations.Migration): replaces = [ - ("digid_eherkenning_oidc_generics", "0001_initial"), - ("digid_eherkenning_oidc_generics", "0002_auto_20240109_1055"), + ("digid_eherkenning_oidc_generics_legacy", "0001_initial"), + ("digid_eherkenning_oidc_generics_legacy", "0002_auto_20240109_1055"), ( - "digid_eherkenning_oidc_generics", + "digid_eherkenning_oidc_generics_legacy", "0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more", ), ( - "digid_eherkenning_oidc_generics", + "digid_eherkenning_oidc_generics_legacy", "0004_alter_openidconnectdigidconfig_table_and_more", ), ] diff --git a/src/digid_eherkenning_oidc_generics/migrations/0002_auto_20240109_1055.py b/src/digid_eherkenning_oidc_generics/migrations/0002_auto_20240109_1055.py index 34ff0cf0d6..9ad885a626 100644 --- a/src/digid_eherkenning_oidc_generics/migrations/0002_auto_20240109_1055.py +++ b/src/digid_eherkenning_oidc_generics/migrations/0002_auto_20240109_1055.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ("digid_eherkenning_oidc_generics", "0001_initial"), + ("digid_eherkenning_oidc_generics_legacy", "0001_initial"), ] operations = [ diff --git a/src/digid_eherkenning_oidc_generics/migrations/0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more.py b/src/digid_eherkenning_oidc_generics/migrations/0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more.py index 183b085ed6..7eea722a3b 100644 --- a/src/digid_eherkenning_oidc_generics/migrations/0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more.py +++ b/src/digid_eherkenning_oidc_generics/migrations/0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more.py @@ -1,13 +1,14 @@ # Generated by Django 4.2.10 on 2024-03-11 16:12 from django.db import migrations, models + import django_jsonform.models.fields class Migration(migrations.Migration): dependencies = [ - ("digid_eherkenning_oidc_generics", "0002_auto_20240109_1055"), + ("digid_eherkenning_oidc_generics_legacy", "0002_auto_20240109_1055"), ] operations = [ diff --git a/src/digid_eherkenning_oidc_generics/migrations/0004_alter_openidconnectdigidconfig_table_and_more.py b/src/digid_eherkenning_oidc_generics/migrations/0004_alter_openidconnectdigidconfig_table_and_more.py index 2a2670cc68..b6ef0bbd52 100644 --- a/src/digid_eherkenning_oidc_generics/migrations/0004_alter_openidconnectdigidconfig_table_and_more.py +++ b/src/digid_eherkenning_oidc_generics/migrations/0004_alter_openidconnectdigidconfig_table_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ( - "digid_eherkenning_oidc_generics", + "digid_eherkenning_oidc_generics_legacy", "0003_alter_openidconnectdigidconfig_oidc_exempt_urls_and_more", ), ]