authentik.enterprise.providers.ws_federation.migrations.0001_initial

 1# Generated by Django 5.2.10 on 2026-01-18 23:25
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    initial = True
10
11    dependencies = [
12        ("authentik_providers_saml", "0020_samlprovider_logout_method_and_more"),
13    ]
14
15    operations = [
16        migrations.CreateModel(
17            name="WSFederationProvider",
18            fields=[
19                (
20                    "samlprovider_ptr",
21                    models.OneToOneField(
22                        auto_created=True,
23                        on_delete=django.db.models.deletion.CASCADE,
24                        parent_link=True,
25                        primary_key=True,
26                        serialize=False,
27                        to="authentik_providers_saml.samlprovider",
28                    ),
29                ),
30            ],
31            options={
32                "verbose_name": "WS-Federation Provider",
33                "verbose_name_plural": "WS-Federation Providers",
34            },
35            bases=("authentik_providers_saml.samlprovider",),
36        ),
37    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    initial = True
11
12    dependencies = [
13        ("authentik_providers_saml", "0020_samlprovider_logout_method_and_more"),
14    ]
15
16    operations = [
17        migrations.CreateModel(
18            name="WSFederationProvider",
19            fields=[
20                (
21                    "samlprovider_ptr",
22                    models.OneToOneField(
23                        auto_created=True,
24                        on_delete=django.db.models.deletion.CASCADE,
25                        parent_link=True,
26                        primary_key=True,
27                        serialize=False,
28                        to="authentik_providers_saml.samlprovider",
29                    ),
30                ),
31            ],
32            options={
33                "verbose_name": "WS-Federation Provider",
34                "verbose_name_plural": "WS-Federation Providers",
35            },
36            bases=("authentik_providers_saml.samlprovider",),
37        ),
38    ]

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.

initial = True
dependencies = [('authentik_providers_saml', '0020_samlprovider_logout_method_and_more')]
operations = [<CreateModel name='WSFederationProvider', fields=[('samlprovider_ptr', <django.db.models.fields.related.OneToOneField>)], options={'verbose_name': 'WS-Federation Provider', 'verbose_name_plural': 'WS-Federation Providers'}, bases=('authentik_providers_saml.samlprovider',)>]