authentik.events.migrations.0018_event_authentik_e_user_pk__idx

 1# Generated by Django 5.2.12 on 2026-04-09 16:03
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_events", "0017_notificationtransport_webhook_ca"),
10    ]
11
12    operations = [
13        migrations.AddIndex(
14            model_name="event",
15            index=models.Index(models.F("user__pk"), name="authentik_e_user_pk__idx"),
16        ),
17    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_events", "0017_notificationtransport_webhook_ca"),
11    ]
12
13    operations = [
14        migrations.AddIndex(
15            model_name="event",
16            index=models.Index(models.F("user__pk"), name="authentik_e_user_pk__idx"),
17        ),
18    ]

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', '0017_notificationtransport_webhook_ca')]
operations = [<AddIndex model_name='event', index=<Index: expressions=(F(user__pk),) name='authentik_e_user_pk__idx'>>]