From 7ab3066ad9b5f992b86d0e10d268d833f66482c3 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Thu, 28 Dec 2023 15:13:12 +0100 Subject: [PATCH] fix migrations from stable Signed-off-by: Marc 'risson' Schmitt --- .../migrations/0001_squashed_0005_tenant_web_certificate.py | 2 +- ...nd_event_retention.py => 0005_tenantuuid_to_branduuid.py} | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename authentik/brands/migrations/{0005_remove_brand_event_retention.py => 0005_tenantuuid_to_branduuid.py} (70%) diff --git a/authentik/brands/migrations/0001_squashed_0005_tenant_web_certificate.py b/authentik/brands/migrations/0001_squashed_0005_tenant_web_certificate.py index 3697232c2..4d0e592f5 100644 --- a/authentik/brands/migrations/0001_squashed_0005_tenant_web_certificate.py +++ b/authentik/brands/migrations/0001_squashed_0005_tenant_web_certificate.py @@ -28,7 +28,7 @@ class Migration(migrations.Migration): name="Brand", fields=[ ( - "brand_uuid", + "tenant_uuid", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False ), diff --git a/authentik/brands/migrations/0005_remove_brand_event_retention.py b/authentik/brands/migrations/0005_tenantuuid_to_branduuid.py similarity index 70% rename from authentik/brands/migrations/0005_remove_brand_event_retention.py rename to authentik/brands/migrations/0005_tenantuuid_to_branduuid.py index 5fdbc8d1b..89f777822 100644 --- a/authentik/brands/migrations/0005_remove_brand_event_retention.py +++ b/authentik/brands/migrations/0005_tenantuuid_to_branduuid.py @@ -9,6 +9,11 @@ class Migration(migrations.Migration): ] operations = [ + migrations.RenameField( + model_name="brand", + old_name="tenant_uuid", + new_name="brand_uuid", + ), migrations.RemoveField( model_name="brand", name="event_retention",