authentik.policies.event_matcher.migrations.0021_alter_eventmatcherpolicy_app

 1# Generated by Django 4.1.5 on 2023-01-05 09:24
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        (
 9            "authentik_policies_event_matcher",
10            "0020_eventmatcherpolicy_authentik_p_policy__e605cf_idx",
11        ),
12    ]
13
14    operations = [
15        migrations.AlterField(
16            model_name="eventmatcherpolicy",
17            name="app",
18            field=models.TextField(
19                blank=True,
20                default="",
21                help_text=(
22                    "Match events created by selected application. When left empty, all"
23                    " applications are matched."
24                ),
25            ),
26        ),
27    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        (
10            "authentik_policies_event_matcher",
11            "0020_eventmatcherpolicy_authentik_p_policy__e605cf_idx",
12        ),
13    ]
14
15    operations = [
16        migrations.AlterField(
17            model_name="eventmatcherpolicy",
18            name="app",
19            field=models.TextField(
20                blank=True,
21                default="",
22                help_text=(
23                    "Match events created by selected application. When left empty, all"
24                    " applications are matched."
25                ),
26            ),
27        ),
28    ]

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', '0020_eventmatcherpolicy_authentik_p_policy__e605cf_idx')]
operations = [<AlterField model_name='eventmatcherpolicy', name='app', field=<django.db.models.fields.TextField>>]