authentik.stages.consent.migrations.0005_alter_consentstage_mode

 1# Generated by Django 4.1.1 on 2022-09-10 11:23
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_stages_consent", "0004_alter_userconsent_unique_together_and_more"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="consentstage",
14            name="mode",
15            field=models.TextField(
16                choices=[
17                    ("always_require", "Always Require"),
18                    ("permanent", "Permanent"),
19                    ("expiring", "Expiring"),
20                ],
21                default="expiring",
22            ),
23        ),
24    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_stages_consent", "0004_alter_userconsent_unique_together_and_more"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="consentstage",
15            name="mode",
16            field=models.TextField(
17                choices=[
18                    ("always_require", "Always Require"),
19                    ("permanent", "Permanent"),
20                    ("expiring", "Expiring"),
21                ],
22                default="expiring",
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_stages_consent', '0004_alter_userconsent_unique_together_and_more')]
operations = [<AlterField model_name='consentstage', name='mode', field=<django.db.models.fields.TextField>>]