authentik.providers.saml.migrations.0022_remove_samlprovider_issuer_and_more

 1# Generated by Django 5.2.11 on 2026-02-24 06:03
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_providers_saml", "0021_samlprovider_sign_logout_response"),
10    ]
11
12    operations = [
13        migrations.RenameField(
14            model_name="samlprovider",
15            old_name="issuer",
16            new_name="issuer_override",
17        ),
18        migrations.AlterField(
19            model_name="samlprovider",
20            name="issuer_override",
21            field=models.TextField(
22                blank=True,
23                default="",
24                help_text="Also known as EntityID. Providing a value overrides the default issuer generated by authentik.",
25            ),
26        ),
27        migrations.AddField(
28            model_name="samlsession",
29            name="issuer",
30            field=models.TextField(
31                default=None, help_text="SAML Issuer used for this session", null=True
32            ),
33        ),
34    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_providers_saml", "0021_samlprovider_sign_logout_response"),
11    ]
12
13    operations = [
14        migrations.RenameField(
15            model_name="samlprovider",
16            old_name="issuer",
17            new_name="issuer_override",
18        ),
19        migrations.AlterField(
20            model_name="samlprovider",
21            name="issuer_override",
22            field=models.TextField(
23                blank=True,
24                default="",
25                help_text="Also known as EntityID. Providing a value overrides the default issuer generated by authentik.",
26            ),
27        ),
28        migrations.AddField(
29            model_name="samlsession",
30            name="issuer",
31            field=models.TextField(
32                default=None, help_text="SAML Issuer used for this session", null=True
33            ),
34        ),
35    ]

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_providers_saml', '0021_samlprovider_sign_logout_response')]
operations = [<RenameField model_name='samlprovider', old_name='issuer', new_name='issuer_override'>, <AlterField model_name='samlprovider', name='issuer_override', field=<django.db.models.fields.TextField>>, <AddField model_name='samlsession', name='issuer', field=<django.db.models.fields.TextField>>]