authentik.sources.ldap.migrations.0008_groupldapsourceconnection_userldapsourceconnection
1# Generated by Django 5.0.14 on 2025-04-11 11:46 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0047_delete_oldauthenticatedsession"), 11 ("authentik_sources_ldap", "0007_ldapsource_lookup_groups_from_user"), 12 ] 13 14 operations = [ 15 migrations.CreateModel( 16 name="GroupLDAPSourceConnection", 17 fields=[ 18 ( 19 "groupsourceconnection_ptr", 20 models.OneToOneField( 21 auto_created=True, 22 on_delete=django.db.models.deletion.CASCADE, 23 parent_link=True, 24 primary_key=True, 25 serialize=False, 26 to="authentik_core.groupsourceconnection", 27 ), 28 ), 29 ], 30 options={ 31 "verbose_name": "Group LDAP Source Connection", 32 "verbose_name_plural": "Group LDAP Source Connections", 33 }, 34 bases=("authentik_core.groupsourceconnection",), 35 ), 36 migrations.CreateModel( 37 name="UserLDAPSourceConnection", 38 fields=[ 39 ( 40 "usersourceconnection_ptr", 41 models.OneToOneField( 42 auto_created=True, 43 on_delete=django.db.models.deletion.CASCADE, 44 parent_link=True, 45 primary_key=True, 46 serialize=False, 47 to="authentik_core.usersourceconnection", 48 ), 49 ), 50 ], 51 options={ 52 "verbose_name": "User LDAP Source Connection", 53 "verbose_name_plural": "User LDAP Source Connections", 54 }, 55 bases=("authentik_core.usersourceconnection",), 56 ), 57 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_core", "0047_delete_oldauthenticatedsession"), 12 ("authentik_sources_ldap", "0007_ldapsource_lookup_groups_from_user"), 13 ] 14 15 operations = [ 16 migrations.CreateModel( 17 name="GroupLDAPSourceConnection", 18 fields=[ 19 ( 20 "groupsourceconnection_ptr", 21 models.OneToOneField( 22 auto_created=True, 23 on_delete=django.db.models.deletion.CASCADE, 24 parent_link=True, 25 primary_key=True, 26 serialize=False, 27 to="authentik_core.groupsourceconnection", 28 ), 29 ), 30 ], 31 options={ 32 "verbose_name": "Group LDAP Source Connection", 33 "verbose_name_plural": "Group LDAP Source Connections", 34 }, 35 bases=("authentik_core.groupsourceconnection",), 36 ), 37 migrations.CreateModel( 38 name="UserLDAPSourceConnection", 39 fields=[ 40 ( 41 "usersourceconnection_ptr", 42 models.OneToOneField( 43 auto_created=True, 44 on_delete=django.db.models.deletion.CASCADE, 45 parent_link=True, 46 primary_key=True, 47 serialize=False, 48 to="authentik_core.usersourceconnection", 49 ), 50 ), 51 ], 52 options={ 53 "verbose_name": "User LDAP Source Connection", 54 "verbose_name_plural": "User LDAP Source Connections", 55 }, 56 bases=("authentik_core.usersourceconnection",), 57 ), 58 ]
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_core', '0047_delete_oldauthenticatedsession'), ('authentik_sources_ldap', '0007_ldapsource_lookup_groups_from_user')]
operations =
[<CreateModel name='GroupLDAPSourceConnection', fields=[('groupsourceconnection_ptr', <django.db.models.fields.related.OneToOneField>)], options={'verbose_name': 'Group LDAP Source Connection', 'verbose_name_plural': 'Group LDAP Source Connections'}, bases=('authentik_core.groupsourceconnection',)>, <CreateModel name='UserLDAPSourceConnection', fields=[('usersourceconnection_ptr', <django.db.models.fields.related.OneToOneField>)], options={'verbose_name': 'User LDAP Source Connection', 'verbose_name_plural': 'User LDAP Source Connections'}, bases=('authentik_core.usersourceconnection',)>]