authentik.providers.saml.migrations.0007_samlprovider_verification_kp

 1# Generated by Django 3.1.3 on 2020-11-08 21:22
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_crypto", "0002_create_self_signed_kp"),
10        ("authentik_providers_saml", "0006_remove_samlprovider_name"),
11    ]
12
13    operations = [
14        migrations.AddField(
15            model_name="samlprovider",
16            name="verification_kp",
17            field=models.ForeignKey(
18                default=None,
19                help_text="If selected, incoming assertion's Signatures will be validated.",
20                null=True,
21                on_delete=django.db.models.deletion.SET_NULL,
22                related_name="+",
23                to="authentik_crypto.certificatekeypair",
24                verbose_name="Verification Keypair",
25            ),
26        ),
27    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9    dependencies = [
10        ("authentik_crypto", "0002_create_self_signed_kp"),
11        ("authentik_providers_saml", "0006_remove_samlprovider_name"),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="samlprovider",
17            name="verification_kp",
18            field=models.ForeignKey(
19                default=None,
20                help_text="If selected, incoming assertion's Signatures will be validated.",
21                null=True,
22                on_delete=django.db.models.deletion.SET_NULL,
23                related_name="+",
24                to="authentik_crypto.certificatekeypair",
25                verbose_name="Verification Keypair",
26            ),
27        ),
28    ]

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_crypto', '0002_create_self_signed_kp'), ('authentik_providers_saml', '0006_remove_samlprovider_name')]
operations = [<AddField model_name='samlprovider', name='verification_kp', field=<django.db.models.fields.related.ForeignKey>>]