authentik.enterprise.migrations.0004_licenseusage_authentik_e_expires_3f2956_idx_and_more

 1# Generated by Django 5.0.10 on 2025-01-13 18:05
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_enterprise", "0003_remove_licenseusage_within_limits_and_more"),
10    ]
11
12    operations = [
13        migrations.AddIndex(
14            model_name="licenseusage",
15            index=models.Index(fields=["expires"], name="authentik_e_expires_3f2956_idx"),
16        ),
17        migrations.AddIndex(
18            model_name="licenseusage",
19            index=models.Index(fields=["expiring"], name="authentik_e_expirin_11d3d7_idx"),
20        ),
21        migrations.AddIndex(
22            model_name="licenseusage",
23            index=models.Index(
24                fields=["expiring", "expires"], name="authentik_e_expirin_4d558f_idx"
25            ),
26        ),
27    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_enterprise", "0003_remove_licenseusage_within_limits_and_more"),
11    ]
12
13    operations = [
14        migrations.AddIndex(
15            model_name="licenseusage",
16            index=models.Index(fields=["expires"], name="authentik_e_expires_3f2956_idx"),
17        ),
18        migrations.AddIndex(
19            model_name="licenseusage",
20            index=models.Index(fields=["expiring"], name="authentik_e_expirin_11d3d7_idx"),
21        ),
22        migrations.AddIndex(
23            model_name="licenseusage",
24            index=models.Index(
25                fields=["expiring", "expires"], name="authentik_e_expirin_4d558f_idx"
26            ),
27        ),
28    ]

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_enterprise', '0003_remove_licenseusage_within_limits_and_more')]
operations = [<AddIndex model_name='licenseusage', index=<Index: fields=['expires'] name='authentik_e_expires_3f2956_idx'>>, <AddIndex model_name='licenseusage', index=<Index: fields=['expiring'] name='authentik_e_expirin_11d3d7_idx'>>, <AddIndex model_name='licenseusage', index=<Index: fields=['expiring', 'expires'] name='authentik_e_expirin_4d558f_idx'>>]