authentik.rbac.migrations.0008_alter_role_group
1# Generated by Django 5.1.12 on 2025-10-02 07:16 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("auth", "0012_alter_user_first_name_max_length"), 11 ("authentik_rbac", "0007_alter_systempermission_options"), 12 ] 13 14 operations = [ 15 migrations.AlterField( 16 model_name="role", 17 name="group", 18 field=models.OneToOneField( 19 null=True, on_delete=django.db.models.deletion.CASCADE, to="auth.group" 20 ), 21 ), 22 migrations.AddField( 23 model_name="role", 24 name="managed", 25 field=models.TextField( 26 default=None, 27 help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.", 28 null=True, 29 unique=True, 30 verbose_name="Managed by authentik", 31 ), 32 ), 33 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("auth", "0012_alter_user_first_name_max_length"), 12 ("authentik_rbac", "0007_alter_systempermission_options"), 13 ] 14 15 operations = [ 16 migrations.AlterField( 17 model_name="role", 18 name="group", 19 field=models.OneToOneField( 20 null=True, on_delete=django.db.models.deletion.CASCADE, to="auth.group" 21 ), 22 ), 23 migrations.AddField( 24 model_name="role", 25 name="managed", 26 field=models.TextField( 27 default=None, 28 help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.", 29 null=True, 30 unique=True, 31 verbose_name="Managed by authentik", 32 ), 33 ), 34 ]
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.