authentik.core.migrations.0064_user_authentik_c_usernam_2f0e4b_idx

 1# Generated by Django 5.2.17 on 2026-08-19 10:14
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_core", "0059_add_application_meta_hide"),
10        ("authentik_rbac", "0010_remove_role_group_alter_role_name"),
11    ]
12
13    operations = [
14        migrations.AddIndex(
15            model_name="user",
16            index=models.Index(
17                fields=["username", "is_active", "type"], name="authentik_c_usernam_2f0e4b_idx"
18            ),
19        ),
20    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_core", "0059_add_application_meta_hide"),
11        ("authentik_rbac", "0010_remove_role_group_alter_role_name"),
12    ]
13
14    operations = [
15        migrations.AddIndex(
16            model_name="user",
17            index=models.Index(
18                fields=["username", "is_active", "type"], name="authentik_c_usernam_2f0e4b_idx"
19            ),
20        ),
21    ]

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', '0059_add_application_meta_hide'), ('authentik_rbac', '0010_remove_role_group_alter_role_name')]
operations = [<AddIndex model_name='user', index=<Index: fields=['username', 'is_active', 'type'] name='authentik_c_usernam_2f0e4b_idx'>>]