authentik.core.migrations.0035_alter_group_options_and_more

 1# Generated by Django 5.0.4 on 2024-04-15 11:28
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("auth", "0012_alter_user_first_name_max_length"),
10        ("authentik_core", "0034_alter_authenticatedsession_expires_and_more"),
11        ("authentik_rbac", "0003_alter_systempermission_options"),
12    ]
13
14    operations = [
15        migrations.AlterModelOptions(
16            name="group",
17            options={
18                "permissions": [
19                    ("add_user_to_group", "Add user to group"),
20                    ("remove_user_from_group", "Remove user from group"),
21                ],
22                "verbose_name": "Group",
23                "verbose_name_plural": "Groups",
24            },
25        ),
26        migrations.AddIndex(
27            model_name="group",
28            index=models.Index(fields=["name"], name="authentik_c_name_9ba8e4_idx"),
29        ),
30        migrations.AddIndex(
31            model_name="user",
32            index=models.Index(fields=["last_login"], name="authentik_c_last_lo_f0179a_idx"),
33        ),
34        migrations.AddIndex(
35            model_name="user",
36            index=models.Index(
37                fields=["password_change_date"], name="authentik_c_passwor_eec915_idx"
38            ),
39        ),
40        migrations.AddIndex(
41            model_name="user",
42            index=models.Index(fields=["uuid"], name="authentik_c_uuid_3dae2f_idx"),
43        ),
44        migrations.AddIndex(
45            model_name="user",
46            index=models.Index(fields=["path"], name="authentik_c_path_b1f502_idx"),
47        ),
48        migrations.AddIndex(
49            model_name="user",
50            index=models.Index(fields=["type"], name="authentik_c_type_ecf60d_idx"),
51        ),
52    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("auth", "0012_alter_user_first_name_max_length"),
11        ("authentik_core", "0034_alter_authenticatedsession_expires_and_more"),
12        ("authentik_rbac", "0003_alter_systempermission_options"),
13    ]
14
15    operations = [
16        migrations.AlterModelOptions(
17            name="group",
18            options={
19                "permissions": [
20                    ("add_user_to_group", "Add user to group"),
21                    ("remove_user_from_group", "Remove user from group"),
22                ],
23                "verbose_name": "Group",
24                "verbose_name_plural": "Groups",
25            },
26        ),
27        migrations.AddIndex(
28            model_name="group",
29            index=models.Index(fields=["name"], name="authentik_c_name_9ba8e4_idx"),
30        ),
31        migrations.AddIndex(
32            model_name="user",
33            index=models.Index(fields=["last_login"], name="authentik_c_last_lo_f0179a_idx"),
34        ),
35        migrations.AddIndex(
36            model_name="user",
37            index=models.Index(
38                fields=["password_change_date"], name="authentik_c_passwor_eec915_idx"
39            ),
40        ),
41        migrations.AddIndex(
42            model_name="user",
43            index=models.Index(fields=["uuid"], name="authentik_c_uuid_3dae2f_idx"),
44        ),
45        migrations.AddIndex(
46            model_name="user",
47            index=models.Index(fields=["path"], name="authentik_c_path_b1f502_idx"),
48        ),
49        migrations.AddIndex(
50            model_name="user",
51            index=models.Index(fields=["type"], name="authentik_c_type_ecf60d_idx"),
52        ),
53    ]

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 = [('auth', '0012_alter_user_first_name_max_length'), ('authentik_core', '0034_alter_authenticatedsession_expires_and_more'), ('authentik_rbac', '0003_alter_systempermission_options')]
operations = [<AlterModelOptions name='group', options={'permissions': [('add_user_to_group', 'Add user to group'), ('remove_user_from_group', 'Remove user from group')], 'verbose_name': 'Group', 'verbose_name_plural': 'Groups'}>, <AddIndex model_name='group', index=<Index: fields=['name'] name='authentik_c_name_9ba8e4_idx'>>, <AddIndex model_name='user', index=<Index: fields=['last_login'] name='authentik_c_last_lo_f0179a_idx'>>, <AddIndex model_name='user', index=<Index: fields=['password_change_date'] name='authentik_c_passwor_eec915_idx'>>, <AddIndex model_name='user', index=<Index: fields=['uuid'] name='authentik_c_uuid_3dae2f_idx'>>, <AddIndex model_name='user', index=<Index: fields=['path'] name='authentik_c_path_b1f502_idx'>>, <AddIndex model_name='user', index=<Index: fields=['type'] name='authentik_c_type_ecf60d_idx'>>]