authentik.policies.event_matcher.migrations.0028_alter_eventmatcherpolicy_action

 1# Generated by Django 5.2.15 on 2026-07-21 13:22
 2
 3import authentik.events.models
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_policies_event_matcher", "0027_eventmatcherpolicy_query"),
11    ]
12
13    operations = [
14        migrations.AlterField(
15            model_name="eventmatcherpolicy",
16            name="action",
17            field=models.TextField(
18                choices=authentik.events.models.event_actions,
19                default=None,
20                help_text="Match created events with this action type. When left empty, all action types will be matched.",
21                null=True,
22            ),
23        ),
24    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        ("authentik_policies_event_matcher", "0027_eventmatcherpolicy_query"),
12    ]
13
14    operations = [
15        migrations.AlterField(
16            model_name="eventmatcherpolicy",
17            name="action",
18            field=models.TextField(
19                choices=authentik.events.models.event_actions,
20                default=None,
21                help_text="Match created events with this action type. When left empty, all action types will be matched.",
22                null=True,
23            ),
24        ),
25    ]

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_policies_event_matcher', '0027_eventmatcherpolicy_query')]
operations = [<AlterField model_name='eventmatcherpolicy', name='action', field=<django.db.models.fields.TextField>>]