authentik.tasks.migrations.0006_task_authentik_t_queue_n_099d0d_idx

 1# Generated by Django 5.2.12 on 2026-03-26 13:13
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_tasks", "0005_tasklog"),
10        ("authentik_tenants", "0007_tenant_pagination_default_page_size_and_more"),
11        ("contenttypes", "0002_remove_content_type_name"),
12    ]
13
14    operations = [
15        migrations.AddIndex(
16            model_name="task",
17            index=models.Index(
18                fields=["queue_name", "state", "eta"], name="authentik_t_queue_n_099d0d_idx"
19            ),
20        ),
21    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_tasks", "0005_tasklog"),
11        ("authentik_tenants", "0007_tenant_pagination_default_page_size_and_more"),
12        ("contenttypes", "0002_remove_content_type_name"),
13    ]
14
15    operations = [
16        migrations.AddIndex(
17            model_name="task",
18            index=models.Index(
19                fields=["queue_name", "state", "eta"], name="authentik_t_queue_n_099d0d_idx"
20            ),
21        ),
22    ]

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_tasks', '0005_tasklog'), ('authentik_tenants', '0007_tenant_pagination_default_page_size_and_more'), ('contenttypes', '0002_remove_content_type_name')]
operations = [<AddIndex model_name='task', index=<Index: fields=['queue_name', 'state', 'eta'] name='authentik_t_queue_n_099d0d_idx'>>]