authentik.policies.event_matcher.migrations.0022_eventmatcherpolicy_model

 1# Generated by Django 4.1.7 on 2023-05-29 15:24
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_policies_event_matcher", "0021_alter_eventmatcherpolicy_app"),
 9    ]
10
11    operations = [
12        migrations.AddField(
13            model_name="eventmatcherpolicy",
14            name="model",
15            field=models.TextField(
16                blank=True,
17                default="",
18                help_text="Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.",
19            ),
20        ),
21    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_policies_event_matcher", "0021_alter_eventmatcherpolicy_app"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="eventmatcherpolicy",
15            name="model",
16            field=models.TextField(
17                blank=True,
18                default="",
19                help_text="Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.",
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_policies_event_matcher', '0021_alter_eventmatcherpolicy_app')]
operations = [<AddField model_name='eventmatcherpolicy', name='model', field=<django.db.models.fields.TextField>>]