authentik.rbac.migrations.0010_remove_role_group_alter_role_name
1# Generated by Django 5.2.10 on 2026-01-19 21:42 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_core", "0056_user_roles"), # must run before group field is removed 10 ("authentik_rbac", "0009_remove_initialpermissions_mode"), 11 ] 12 13 operations = [ 14 migrations.RemoveField( 15 model_name="role", 16 name="group", 17 ), 18 migrations.AlterField( 19 model_name="role", 20 name="name", 21 field=models.TextField(unique=True), 22 ), 23 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0056_user_roles"), # must run before group field is removed 11 ("authentik_rbac", "0009_remove_initialpermissions_mode"), 12 ] 13 14 operations = [ 15 migrations.RemoveField( 16 model_name="role", 17 name="group", 18 ), 19 migrations.AlterField( 20 model_name="role", 21 name="name", 22 field=models.TextField(unique=True), 23 ), 24 ]
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.