authentik.flows.migrations.0024_flow_authentication

 1# Generated by Django 4.1.3 on 2022-11-30 09:04
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_flows", "0023_flow_denied_action"),
 9    ]
10
11    operations = [
12        migrations.AddField(
13            model_name="flow",
14            name="authentication",
15            field=models.TextField(
16                choices=[
17                    ("none", "None"),
18                    ("require_authenticated", "Require Authenticated"),
19                    ("require_unauthenticated", "Require Unauthenticated"),
20                    ("require_superuser", "Require Superuser"),
21                ],
22                default="none",
23                help_text="Required level of authentication and authorization to access a flow.",
24            ),
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_flows", "0023_flow_denied_action"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="flow",
15            name="authentication",
16            field=models.TextField(
17                choices=[
18                    ("none", "None"),
19                    ("require_authenticated", "Require Authenticated"),
20                    ("require_unauthenticated", "Require Unauthenticated"),
21                    ("require_superuser", "Require Superuser"),
22                ],
23                default="none",
24                help_text="Required level of authentication and authorization to access a flow.",
25            ),
26        ),
27    ]

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_flows', '0023_flow_denied_action')]
operations = [<AddField model_name='flow', name='authentication', field=<django.db.models.fields.TextField>>]