authentik.stages.prompt.migrations.0003_auto_20210222_1821

 1# Generated by Django 3.1.6 on 2021-02-22 18:21
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_stages_prompt", "0002_auto_20200920_1859"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="prompt",
14            name="type",
15            field=models.CharField(
16                choices=[
17                    ("text", "Text: Simple Text input"),
18                    (
19                        "username",
20                        (
21                            "Username: Same as Text input, but checks for and prevents duplicate"
22                            " usernames."
23                        ),
24                    ),
25                    ("email", "Email: Text field with Email type."),
26                    (
27                        "password",
28                        (
29                            "Password: Masked input, password is validated against sources."
30                            " Policies still have to be applied to this Stage. If two of these are"
31                            " used in the same stage, they are ensured to be identical."
32                        ),
33                    ),
34                    ("number", "Number"),
35                    ("checkbox", "Checkbox"),
36                    ("date", "Date"),
37                    ("date-time", "Date Time"),
38                    ("separator", "Separator: Static Separator Line"),
39                    (
40                        "hidden",
41                        "Hidden: Hidden field, can be used to insert data into form.",
42                    ),
43                    ("static", "Static: Static value, displayed as-is."),
44                ],
45                max_length=100,
46            ),
47        ),
48    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_stages_prompt", "0002_auto_20200920_1859"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="prompt",
15            name="type",
16            field=models.CharField(
17                choices=[
18                    ("text", "Text: Simple Text input"),
19                    (
20                        "username",
21                        (
22                            "Username: Same as Text input, but checks for and prevents duplicate"
23                            " usernames."
24                        ),
25                    ),
26                    ("email", "Email: Text field with Email type."),
27                    (
28                        "password",
29                        (
30                            "Password: Masked input, password is validated against sources."
31                            " Policies still have to be applied to this Stage. If two of these are"
32                            " used in the same stage, they are ensured to be identical."
33                        ),
34                    ),
35                    ("number", "Number"),
36                    ("checkbox", "Checkbox"),
37                    ("date", "Date"),
38                    ("date-time", "Date Time"),
39                    ("separator", "Separator: Static Separator Line"),
40                    (
41                        "hidden",
42                        "Hidden: Hidden field, can be used to insert data into form.",
43                    ),
44                    ("static", "Static: Static value, displayed as-is."),
45                ],
46                max_length=100,
47            ),
48        ),
49    ]

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_stages_prompt', '0002_auto_20200920_1859')]
operations = [<AlterField model_name='prompt', name='type', field=<django.db.models.fields.CharField>>]