authentik.tasks.migrations.0002_alter_task_aggregated_status_alter_task_state

 1# Generated by Django 5.2.7 on 2025-10-07 13:47
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_tasks", "0001_initial"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="task",
15            name="aggregated_status",
16            field=models.TextField(
17                choices=[
18                    ("queued", "Queued"),
19                    ("consumed", "Consumed"),
20                    ("preprocess", "Preprocess"),
21                    ("running", "Running"),
22                    ("postprocess", "Postprocess"),
23                    ("rejected", "Rejected"),
24                    ("done", "Done"),
25                    ("info", "Info"),
26                    ("warning", "Warning"),
27                    ("error", "Error"),
28                ]
29            ),
30        ),
31        migrations.AlterField(
32            model_name="task",
33            name="state",
34            field=models.CharField(
35                choices=[
36                    ("queued", "Queued"),
37                    ("consumed", "Consumed"),
38                    ("preprocess", "Preprocess"),
39                    ("running", "Running"),
40                    ("postprocess", "Postprocess"),
41                    ("rejected", "Rejected"),
42                    ("done", "Done"),
43                ],
44                default="queued",
45                help_text="Task status",
46            ),
47        ),
48    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_tasks", "0001_initial"),
11    ]
12
13    operations = [
14        migrations.AlterField(
15            model_name="task",
16            name="aggregated_status",
17            field=models.TextField(
18                choices=[
19                    ("queued", "Queued"),
20                    ("consumed", "Consumed"),
21                    ("preprocess", "Preprocess"),
22                    ("running", "Running"),
23                    ("postprocess", "Postprocess"),
24                    ("rejected", "Rejected"),
25                    ("done", "Done"),
26                    ("info", "Info"),
27                    ("warning", "Warning"),
28                    ("error", "Error"),
29                ]
30            ),
31        ),
32        migrations.AlterField(
33            model_name="task",
34            name="state",
35            field=models.CharField(
36                choices=[
37                    ("queued", "Queued"),
38                    ("consumed", "Consumed"),
39                    ("preprocess", "Preprocess"),
40                    ("running", "Running"),
41                    ("postprocess", "Postprocess"),
42                    ("rejected", "Rejected"),
43                    ("done", "Done"),
44                ],
45                default="queued",
46                help_text="Task status",
47            ),
48        ),
49    ]

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', '0001_initial')]
operations = [<AlterField model_name='task', name='aggregated_status', field=<django.db.models.fields.TextField>>, <AlterField model_name='task', name='state', field=<django.db.models.fields.CharField>>]