authentik.sources.ldap.migrations.0006_rename_ldappropertymapping_ldapsourcepropertymapping_and_more

 1# Generated by Django 5.0.7 on 2024-07-24 12:44
 2
 3from django.db import migrations
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_core", "0037_remove_source_property_mappings"),
10        ("authentik_sources_ldap", "0005_remove_ldappropertymapping_object_field_and_more"),
11    ]
12
13    operations = [
14        migrations.RenameModel(
15            old_name="LDAPPropertyMapping",
16            new_name="LDAPSourcePropertyMapping",
17        ),
18        migrations.AlterModelOptions(
19            name="ldapsourcepropertymapping",
20            options={
21                "verbose_name": "LDAP Source Property Mapping",
22                "verbose_name_plural": "LDAP Source Property Mappings",
23            },
24        ),
25    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_core", "0037_remove_source_property_mappings"),
11        ("authentik_sources_ldap", "0005_remove_ldappropertymapping_object_field_and_more"),
12    ]
13
14    operations = [
15        migrations.RenameModel(
16            old_name="LDAPPropertyMapping",
17            new_name="LDAPSourcePropertyMapping",
18        ),
19        migrations.AlterModelOptions(
20            name="ldapsourcepropertymapping",
21            options={
22                "verbose_name": "LDAP Source Property Mapping",
23                "verbose_name_plural": "LDAP Source Property Mappings",
24            },
25        ),
26    ]

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', '0037_remove_source_property_mappings'), ('authentik_sources_ldap', '0005_remove_ldappropertymapping_object_field_and_more')]
operations = [<RenameModel old_name='LDAPPropertyMapping', new_name='LDAPSourcePropertyMapping'>, <AlterModelOptions name='ldapsourcepropertymapping', options={'verbose_name': 'LDAP Source Property Mapping', 'verbose_name_plural': 'LDAP Source Property Mappings'}>]