authentik.events.migrations.0006_alter_systemtask_expires

 1# Generated by Django 5.0.2 on 2024-02-29 10:15
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        (
10            "authentik_events",
11            "0004_systemtask_squashed_0005_remove_systemtask_finish_timestamp_and_more",
12        ),
13    ]
14
15    operations = [
16        migrations.AlterField(
17            model_name="systemtask",
18            name="expires",
19            field=models.DateTimeField(default=None, null=True),
20        ),
21    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        (
11            "authentik_events",
12            "0004_systemtask_squashed_0005_remove_systemtask_finish_timestamp_and_more",
13        ),
14    ]
15
16    operations = [
17        migrations.AlterField(
18            model_name="systemtask",
19            name="expires",
20            field=models.DateTimeField(default=None, null=True),
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_events', '0004_systemtask_squashed_0005_remove_systemtask_finish_timestamp_and_more')]
operations = [<AlterField model_name='systemtask', name='expires', field=<django.db.models.fields.DateTimeField>>]