authentik.sources.ldap.migrations.0004_ldapsource_password_login_update_internal_password
1# Generated by Django 5.0.1 on 2024-01-31 18:41 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_sources_ldap", "0003_ldapsource_client_certificate_ldapsource_sni_and_more"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="ldapsource", 15 name="password_login_update_internal_password", 16 field=models.BooleanField( 17 default=True, 18 help_text="Update internal authentik password when login succeeds with LDAP", 19 ), 20 ), 21 migrations.AlterField( 22 model_name="ldapsource", 23 name="password_login_update_internal_password", 24 field=models.BooleanField( 25 default=False, 26 help_text="Update internal authentik password when login succeeds with LDAP", 27 ), 28 ), 29 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_sources_ldap", "0003_ldapsource_client_certificate_ldapsource_sni_and_more"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="ldapsource", 16 name="password_login_update_internal_password", 17 field=models.BooleanField( 18 default=True, 19 help_text="Update internal authentik password when login succeeds with LDAP", 20 ), 21 ), 22 migrations.AlterField( 23 model_name="ldapsource", 24 name="password_login_update_internal_password", 25 field=models.BooleanField( 26 default=False, 27 help_text="Update internal authentik password when login succeeds with LDAP", 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.