authentik.policies.reputation.migrations.0007_reputation_authentik_p_identif_9434d7_idx_and_more

 1# Generated by Django 5.0.6 on 2024-06-11 08:50
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_policies_reputation", "0006_reputation_ip_asn_data"),
10    ]
11
12    operations = [
13        migrations.AddIndex(
14            model_name="reputation",
15            index=models.Index(fields=["identifier"], name="authentik_p_identif_9434d7_idx"),
16        ),
17        migrations.AddIndex(
18            model_name="reputation",
19            index=models.Index(fields=["ip"], name="authentik_p_ip_7ad0df_idx"),
20        ),
21        migrations.AddIndex(
22            model_name="reputation",
23            index=models.Index(fields=["ip", "identifier"], name="authentik_p_ip_d779aa_idx"),
24        ),
25    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_policies_reputation", "0006_reputation_ip_asn_data"),
11    ]
12
13    operations = [
14        migrations.AddIndex(
15            model_name="reputation",
16            index=models.Index(fields=["identifier"], name="authentik_p_identif_9434d7_idx"),
17        ),
18        migrations.AddIndex(
19            model_name="reputation",
20            index=models.Index(fields=["ip"], name="authentik_p_ip_7ad0df_idx"),
21        ),
22        migrations.AddIndex(
23            model_name="reputation",
24            index=models.Index(fields=["ip", "identifier"], name="authentik_p_ip_d779aa_idx"),
25        ),
26    ]

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_policies_reputation', '0006_reputation_ip_asn_data')]
operations = [<AddIndex model_name='reputation', index=<Index: fields=['identifier'] name='authentik_p_identif_9434d7_idx'>>, <AddIndex model_name='reputation', index=<Index: fields=['ip'] name='authentik_p_ip_7ad0df_idx'>>, <AddIndex model_name='reputation', index=<Index: fields=['ip', 'identifier'] name='authentik_p_ip_d779aa_idx'>>]