authentik.core.migrations.0022_alter_group_parent
1# Generated by Django 4.0.6 on 2022-08-05 22:01 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_core", "0021_source_user_path_user_path"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="group", 15 name="parent", 16 field=models.ForeignKey( 17 blank=True, 18 default=None, 19 null=True, 20 on_delete=django.db.models.deletion.SET_NULL, 21 related_name="children", 22 to="authentik_core.group", 23 ), 24 ), 25 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_core", "0021_source_user_path_user_path"), 11 ] 12 13 operations = [ 14 migrations.AlterField( 15 model_name="group", 16 name="parent", 17 field=models.ForeignKey( 18 blank=True, 19 default=None, 20 null=True, 21 on_delete=django.db.models.deletion.SET_NULL, 22 related_name="children", 23 to="authentik_core.group", 24 ), 25 ), 26 ]
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.