authentik.providers.saml.migrations.0011_samlprovider_name_id_mapping
1# Generated by Django 3.1.4 on 2021-01-28 21:01 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_providers_saml", "0010_auto_20201230_2112"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="samlprovider", 15 name="name_id_mapping", 16 field=models.ForeignKey( 17 blank=True, 18 default=None, 19 help_text=( 20 "Configure how the NameID value will be created. When left empty, the" 21 " NameIDPolicy of the incoming request will be considered" 22 ), 23 null=True, 24 verbose_name="NameID Property Mapping", 25 on_delete=django.db.models.deletion.SET_DEFAULT, 26 to="authentik_providers_saml.samlpropertymapping", 27 ), 28 ), 29 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_providers_saml", "0010_auto_20201230_2112"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="samlprovider", 16 name="name_id_mapping", 17 field=models.ForeignKey( 18 blank=True, 19 default=None, 20 help_text=( 21 "Configure how the NameID value will be created. When left empty, the" 22 " NameIDPolicy of the incoming request will be considered" 23 ), 24 null=True, 25 verbose_name="NameID Property Mapping", 26 on_delete=django.db.models.deletion.SET_DEFAULT, 27 to="authentik_providers_saml.samlpropertymapping", 28 ), 29 ), 30 ]
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.