authentik.enterprise.providers.google_workspace.migrations.0003_googleworkspaceprovidergroup_attributes_and_more

 1# Generated by Django 5.0.6 on 2024-05-23 20:48
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        (
10            "authentik_providers_google_workspace",
11            "0001_squashed_0002_alter_googleworkspaceprovidergroup_options_and_more",
12        ),
13    ]
14
15    operations = [
16        migrations.AddField(
17            model_name="googleworkspaceprovidergroup",
18            name="attributes",
19            field=models.JSONField(default=dict),
20        ),
21        migrations.AddField(
22            model_name="googleworkspaceprovideruser",
23            name="attributes",
24            field=models.JSONField(default=dict),
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        (
11            "authentik_providers_google_workspace",
12            "0001_squashed_0002_alter_googleworkspaceprovidergroup_options_and_more",
13        ),
14    ]
15
16    operations = [
17        migrations.AddField(
18            model_name="googleworkspaceprovidergroup",
19            name="attributes",
20            field=models.JSONField(default=dict),
21        ),
22        migrations.AddField(
23            model_name="googleworkspaceprovideruser",
24            name="attributes",
25            field=models.JSONField(default=dict),
26        ),
27    ]

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_providers_google_workspace', '0001_squashed_0002_alter_googleworkspaceprovidergroup_options_and_more')]
operations = [<AddField model_name='googleworkspaceprovidergroup', name='attributes', field=<django.db.models.fields.json.JSONField>>, <AddField model_name='googleworkspaceprovideruser', name='attributes', field=<django.db.models.fields.json.JSONField>>]