authentik.sources.ldap.migrations.0009_groupldapsourceconnection_validated_by_and_more

 1# Generated by Django 5.1.9 on 2025-05-28 08:15
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_core", "0048_delete_oldauthenticatedsession_content_type"),
10        ("authentik_sources_ldap", "0008_groupldapsourceconnection_userldapsourceconnection"),
11    ]
12
13    operations = [
14        migrations.AddField(
15            model_name="groupldapsourceconnection",
16            name="validated_by",
17            field=models.UUIDField(
18                blank=True,
19                help_text="Unique ID used while checking if this object still exists in the directory.",
20                null=True,
21            ),
22        ),
23        migrations.AddField(
24            model_name="ldapsource",
25            name="delete_not_found_objects",
26            field=models.BooleanField(
27                default=False,
28                help_text="Delete authentik users and groups which were previously supplied by this source, but are now missing from it.",
29            ),
30        ),
31        migrations.AddField(
32            model_name="userldapsourceconnection",
33            name="validated_by",
34            field=models.UUIDField(
35                blank=True,
36                help_text="Unique ID used while checking if this object still exists in the directory.",
37                null=True,
38            ),
39        ),
40        migrations.AddIndex(
41            model_name="groupldapsourceconnection",
42            index=models.Index(fields=["validated_by"], name="authentik_s_validat_b70447_idx"),
43        ),
44        migrations.AddIndex(
45            model_name="userldapsourceconnection",
46            index=models.Index(fields=["validated_by"], name="authentik_s_validat_ff2ebc_idx"),
47        ),
48    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_core", "0048_delete_oldauthenticatedsession_content_type"),
11        ("authentik_sources_ldap", "0008_groupldapsourceconnection_userldapsourceconnection"),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="groupldapsourceconnection",
17            name="validated_by",
18            field=models.UUIDField(
19                blank=True,
20                help_text="Unique ID used while checking if this object still exists in the directory.",
21                null=True,
22            ),
23        ),
24        migrations.AddField(
25            model_name="ldapsource",
26            name="delete_not_found_objects",
27            field=models.BooleanField(
28                default=False,
29                help_text="Delete authentik users and groups which were previously supplied by this source, but are now missing from it.",
30            ),
31        ),
32        migrations.AddField(
33            model_name="userldapsourceconnection",
34            name="validated_by",
35            field=models.UUIDField(
36                blank=True,
37                help_text="Unique ID used while checking if this object still exists in the directory.",
38                null=True,
39            ),
40        ),
41        migrations.AddIndex(
42            model_name="groupldapsourceconnection",
43            index=models.Index(fields=["validated_by"], name="authentik_s_validat_b70447_idx"),
44        ),
45        migrations.AddIndex(
46            model_name="userldapsourceconnection",
47            index=models.Index(fields=["validated_by"], name="authentik_s_validat_ff2ebc_idx"),
48        ),
49    ]

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_core', '0048_delete_oldauthenticatedsession_content_type'), ('authentik_sources_ldap', '0008_groupldapsourceconnection_userldapsourceconnection')]
operations = [<AddField model_name='groupldapsourceconnection', name='validated_by', field=<django.db.models.fields.UUIDField>>, <AddField model_name='ldapsource', name='delete_not_found_objects', field=<django.db.models.fields.BooleanField>>, <AddField model_name='userldapsourceconnection', name='validated_by', field=<django.db.models.fields.UUIDField>>, <AddIndex model_name='groupldapsourceconnection', index=<Index: fields=['validated_by'] name='authentik_s_validat_b70447_idx'>>, <AddIndex model_name='userldapsourceconnection', index=<Index: fields=['validated_by'] name='authentik_s_validat_ff2ebc_idx'>>]