authentik.providers.scim.migrations.0005_scimprovider_exclude_users_service_account_and_more

 1# Generated by Django 4.1.7 on 2023-03-07 10:35
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_core", "0025_alter_provider_authorization_flow"),
10        ("authentik_providers_scim", "0004_scimprovider_property_mappings_group"),
11    ]
12
13    operations = [
14        migrations.AddField(
15            model_name="scimprovider",
16            name="exclude_users_service_account",
17            field=models.BooleanField(default=False),
18        ),
19        migrations.AddField(
20            model_name="scimprovider",
21            name="parent_group",
22            field=models.ForeignKey(
23                default=None,
24                null=True,
25                on_delete=django.db.models.deletion.SET_DEFAULT,
26                to="authentik_core.group",
27            ),
28        ),
29    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9    dependencies = [
10        ("authentik_core", "0025_alter_provider_authorization_flow"),
11        ("authentik_providers_scim", "0004_scimprovider_property_mappings_group"),
12    ]
13
14    operations = [
15        migrations.AddField(
16            model_name="scimprovider",
17            name="exclude_users_service_account",
18            field=models.BooleanField(default=False),
19        ),
20        migrations.AddField(
21            model_name="scimprovider",
22            name="parent_group",
23            field=models.ForeignKey(
24                default=None,
25                null=True,
26                on_delete=django.db.models.deletion.SET_DEFAULT,
27                to="authentik_core.group",
28            ),
29        ),
30    ]

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_core', '0025_alter_provider_authorization_flow'), ('authentik_providers_scim', '0004_scimprovider_property_mappings_group')]
operations = [<AddField model_name='scimprovider', name='exclude_users_service_account', field=<django.db.models.fields.BooleanField>>, <AddField model_name='scimprovider', name='parent_group', field=<django.db.models.fields.related.ForeignKey>>]