authentik.brands.migrations.0005_tenantuuid_to_branduuid

 1# Generated by Django 4.2.7 on 2023-12-12 06:41
 2
 3from django.db import migrations
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_brands", "0004_tenant_flow_device_code"),
 9    ]
10
11    operations = [
12        migrations.RenameField(
13            model_name="brand",
14            old_name="tenant_uuid",
15            new_name="brand_uuid",
16        ),
17        migrations.RemoveField(
18            model_name="brand",
19            name="event_retention",
20        ),
21    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_brands", "0004_tenant_flow_device_code"),
10    ]
11
12    operations = [
13        migrations.RenameField(
14            model_name="brand",
15            old_name="tenant_uuid",
16            new_name="brand_uuid",
17        ),
18        migrations.RemoveField(
19            model_name="brand",
20            name="event_retention",
21        ),
22    ]

The base class for all migrations.

Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:

  • operations: A list of Operation instances, probably from django.db.migrations.operations
  • dependencies: A list of tuples of (app_path, migration_name)
  • run_before: A list of tuples of (app_path, migration_name)
  • replaces: A list of migration_names

Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.

dependencies = [('authentik_brands', '0004_tenant_flow_device_code')]
operations = [<RenameField model_name='brand', old_name='tenant_uuid', new_name='brand_uuid'>, <RemoveField model_name='brand', name='event_retention'>]