authentik.outposts.migrations.0020_alter_outpost_type
1# Generated by Django 4.1.7 on 2023-03-20 10:58 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_outposts", "0019_alter_outpost_name_and_more"), 9 ] 10 11 operations = [ 12 migrations.AlterField( 13 model_name="outpost", 14 name="type", 15 field=models.TextField( 16 choices=[("proxy", "Proxy"), ("ldap", "Ldap"), ("radius", "Radius")], 17 default="proxy", 18 ), 19 ), 20 migrations.AlterField( 21 model_name="outpost", 22 name="managed", 23 field=models.TextField( 24 default=None, 25 help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.", 26 null=True, 27 unique=True, 28 verbose_name="Managed by authentik", 29 ), 30 ), 31 migrations.AlterModelOptions( 32 name="outpost", 33 options={"verbose_name": "Outpost", "verbose_name_plural": "Outposts"}, 34 ), 35 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_outposts", "0019_alter_outpost_name_and_more"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="outpost", 15 name="type", 16 field=models.TextField( 17 choices=[("proxy", "Proxy"), ("ldap", "Ldap"), ("radius", "Radius")], 18 default="proxy", 19 ), 20 ), 21 migrations.AlterField( 22 model_name="outpost", 23 name="managed", 24 field=models.TextField( 25 default=None, 26 help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.", 27 null=True, 28 unique=True, 29 verbose_name="Managed by authentik", 30 ), 31 ), 32 migrations.AlterModelOptions( 33 name="outpost", 34 options={"verbose_name": "Outpost", "verbose_name_plural": "Outposts"}, 35 ), 36 ]
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.
operations =
[<AlterField model_name='outpost', name='type', field=<django.db.models.fields.TextField>>, <AlterField model_name='outpost', name='managed', field=<django.db.models.fields.TextField>>, <AlterModelOptions name='outpost', options={'verbose_name': 'Outpost', 'verbose_name_plural': 'Outposts'}>]