authentik.outposts.migrations.0021_alter_outpost_type

 1# Generated by Django 4.2.6 on 2023-10-14 19:23
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_outposts", "0020_alter_outpost_type"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="outpost",
14            name="type",
15            field=models.TextField(
16                choices=[
17                    ("proxy", "Proxy"),
18                    ("ldap", "Ldap"),
19                    ("radius", "Radius"),
20                    ("rac", "Rac"),
21                ],
22                default="proxy",
23            ),
24        ),
25    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_outposts", "0020_alter_outpost_type"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="outpost",
15            name="type",
16            field=models.TextField(
17                choices=[
18                    ("proxy", "Proxy"),
19                    ("ldap", "Ldap"),
20                    ("radius", "Radius"),
21                    ("rac", "Rac"),
22                ],
23                default="proxy",
24            ),
25        ),
26    ]

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_outposts', '0020_alter_outpost_type')]
operations = [<AlterField model_name='outpost', name='type', field=<django.db.models.fields.TextField>>]