authentik.outposts.migrations.0019_alter_outpost_name_and_more

 1# Generated by Django 4.1.7 on 2023-03-07 13:41
 2
 3from django.db import migrations, models
 4
 5from authentik.lib.migrations import fallback_names
 6
 7
 8class Migration(migrations.Migration):
 9    dependencies = [
10        ("authentik_outposts", "0018_kubernetesserviceconnection_verify_ssl"),
11    ]
12
13    operations = [
14        migrations.RunPython(fallback_names("authentik_outposts", "outpost", "name")),
15        migrations.RunPython(
16            fallback_names("authentik_outposts", "outpostserviceconnection", "name")
17        ),
18        migrations.AlterField(
19            model_name="outpost",
20            name="name",
21            field=models.TextField(unique=True),
22        ),
23        migrations.AlterField(
24            model_name="outpostserviceconnection",
25            name="name",
26            field=models.TextField(unique=True),
27        ),
28    ]
class Migration(django.db.migrations.migration.Migration):
 9class Migration(migrations.Migration):
10    dependencies = [
11        ("authentik_outposts", "0018_kubernetesserviceconnection_verify_ssl"),
12    ]
13
14    operations = [
15        migrations.RunPython(fallback_names("authentik_outposts", "outpost", "name")),
16        migrations.RunPython(
17            fallback_names("authentik_outposts", "outpostserviceconnection", "name")
18        ),
19        migrations.AlterField(
20            model_name="outpost",
21            name="name",
22            field=models.TextField(unique=True),
23        ),
24        migrations.AlterField(
25            model_name="outpostserviceconnection",
26            name="name",
27            field=models.TextField(unique=True),
28        ),
29    ]

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', '0018_kubernetesserviceconnection_verify_ssl')]
operations = [<RunPython <function fallback_names.<locals>.migrator>>, <RunPython <function fallback_names.<locals>.migrator>>, <AlterField model_name='outpost', name='name', field=<django.db.models.fields.TextField>>, <AlterField model_name='outpostserviceconnection', name='name', field=<django.db.models.fields.TextField>>]