authentik.sources.ldap.migrations.0002_auto_20211203_0900
1# Generated by Django 3.2.9 on 2021-12-03 09:00 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6import authentik.sources.ldap.models 7 8 9class Migration(migrations.Migration): 10 dependencies = [ 11 ("authentik_crypto", "0003_certificatekeypair_managed"), 12 ("authentik_sources_ldap", "0001_squashed_0012_auto_20210812_1703"), 13 ] 14 15 operations = [ 16 migrations.AddField( 17 model_name="ldapsource", 18 name="peer_certificate", 19 field=models.ForeignKey( 20 default=None, 21 help_text=( 22 "Optionally verify the LDAP Server's Certificate against the CA Chain in this" 23 " keypair." 24 ), 25 null=True, 26 on_delete=django.db.models.deletion.SET_DEFAULT, 27 to="authentik_crypto.certificatekeypair", 28 ), 29 ), 30 migrations.AlterField( 31 model_name="ldapsource", 32 name="server_uri", 33 field=models.TextField( 34 validators=[ 35 authentik.sources.ldap.models.MultiURLValidator(schemes=["ldap", "ldaps"]) 36 ], 37 verbose_name="Server URI", 38 ), 39 ), 40 ]
class
Migration(django.db.migrations.migration.Migration):
10class Migration(migrations.Migration): 11 dependencies = [ 12 ("authentik_crypto", "0003_certificatekeypair_managed"), 13 ("authentik_sources_ldap", "0001_squashed_0012_auto_20210812_1703"), 14 ] 15 16 operations = [ 17 migrations.AddField( 18 model_name="ldapsource", 19 name="peer_certificate", 20 field=models.ForeignKey( 21 default=None, 22 help_text=( 23 "Optionally verify the LDAP Server's Certificate against the CA Chain in this" 24 " keypair." 25 ), 26 null=True, 27 on_delete=django.db.models.deletion.SET_DEFAULT, 28 to="authentik_crypto.certificatekeypair", 29 ), 30 ), 31 migrations.AlterField( 32 model_name="ldapsource", 33 name="server_uri", 34 field=models.TextField( 35 validators=[ 36 authentik.sources.ldap.models.MultiURLValidator(schemes=["ldap", "ldaps"]) 37 ], 38 verbose_name="Server URI", 39 ), 40 ), 41 ]
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.