authentik.providers.rac.migrations.0008_endpointpropertymapping_and_more

 1# Generated by Django 5.2.15 on 2026-06-23 15:35
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_core", "0060_sourcegrouppropertymapping_and_more"),
11        ("authentik_providers_rac", "0007_migrate_session"),
12    ]
13
14    operations = [
15        migrations.SeparateDatabaseAndState(
16            database_operations=[],
17            state_operations=[
18                migrations.CreateModel(
19                    name="EndpointPropertyMapping",
20                    fields=[
21                        (
22                            "id",
23                            models.AutoField(
24                                auto_created=True,
25                                primary_key=True,
26                                serialize=False,
27                                verbose_name="ID",
28                            ),
29                        ),
30                        (
31                            "endpoint",
32                            models.ForeignKey(
33                                on_delete=django.db.models.deletion.CASCADE,
34                                to="authentik_providers_rac.endpoint",
35                            ),
36                        ),
37                        (
38                            "property_mapping",
39                            models.ForeignKey(
40                                db_column="propertymapping_id",
41                                on_delete=django.db.models.deletion.CASCADE,
42                                to="authentik_core.propertymapping",
43                            ),
44                        ),
45                    ],
46                    options={
47                        "db_table": "authentik_providers_rac_endpoint_property_mappings",
48                        "unique_together": {("property_mapping", "endpoint")},
49                        "verbose_name": "Endpoint Property Mapping",
50                        "verbose_name_plural": "Endpoint Property Mappings",
51                    },
52                ),
53                migrations.AlterField(
54                    model_name="endpoint",
55                    name="property_mappings",
56                    field=models.ManyToManyField(
57                        blank=True,
58                        default=None,
59                        through="authentik_providers_rac.EndpointPropertyMapping",
60                        to="authentik_core.propertymapping",
61                    ),
62                ),
63            ],
64        ),
65    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        ("authentik_core", "0060_sourcegrouppropertymapping_and_more"),
12        ("authentik_providers_rac", "0007_migrate_session"),
13    ]
14
15    operations = [
16        migrations.SeparateDatabaseAndState(
17            database_operations=[],
18            state_operations=[
19                migrations.CreateModel(
20                    name="EndpointPropertyMapping",
21                    fields=[
22                        (
23                            "id",
24                            models.AutoField(
25                                auto_created=True,
26                                primary_key=True,
27                                serialize=False,
28                                verbose_name="ID",
29                            ),
30                        ),
31                        (
32                            "endpoint",
33                            models.ForeignKey(
34                                on_delete=django.db.models.deletion.CASCADE,
35                                to="authentik_providers_rac.endpoint",
36                            ),
37                        ),
38                        (
39                            "property_mapping",
40                            models.ForeignKey(
41                                db_column="propertymapping_id",
42                                on_delete=django.db.models.deletion.CASCADE,
43                                to="authentik_core.propertymapping",
44                            ),
45                        ),
46                    ],
47                    options={
48                        "db_table": "authentik_providers_rac_endpoint_property_mappings",
49                        "unique_together": {("property_mapping", "endpoint")},
50                        "verbose_name": "Endpoint Property Mapping",
51                        "verbose_name_plural": "Endpoint Property Mappings",
52                    },
53                ),
54                migrations.AlterField(
55                    model_name="endpoint",
56                    name="property_mappings",
57                    field=models.ManyToManyField(
58                        blank=True,
59                        default=None,
60                        through="authentik_providers_rac.EndpointPropertyMapping",
61                        to="authentik_core.propertymapping",
62                    ),
63                ),
64            ],
65        ),
66    ]

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', '0060_sourcegrouppropertymapping_and_more'), ('authentik_providers_rac', '0007_migrate_session')]
operations = [<SeparateDatabaseAndState database_operations=[], state_operations=[<CreateModel name='EndpointPropertyMapping', fields=[('id', <django.db.models.fields.AutoField>), ('endpoint', <django.db.models.fields.related.ForeignKey>), ('property_mapping', <django.db.models.fields.related.ForeignKey>)], options={'db_table': 'authentik_providers_rac_endpoint_property_mappings', 'unique_together': {('property_mapping', 'endpoint')}, 'verbose_name': 'Endpoint Property Mapping', 'verbose_name_plural': 'Endpoint Property Mappings'}>, <AlterField model_name='endpoint', name='property_mappings', field=<django.db.models.fields.related.ManyToManyField>>]>]