authentik.providers.oauth2.migrations.0019_accesstoken_authentik_p_token_4bc870_idx_and_more

 1# Generated by Django 5.0.9 on 2024-09-26 16:25
 2
 3from django.conf import settings
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_providers_oauth2", "0018_alter_accesstoken_expires_and_more"),
11        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12    ]
13
14    # Original preserved
15    # See https://github.com/goauthentik/authentik/issues/11874
16    # operations = [
17    #     migrations.AddIndex(
18    #         model_name="accesstoken",
19    #         index=models.Index(fields=["token"], name="authentik_p_token_4bc870_idx"),
20    #     ),
21    #     migrations.AddIndex(
22    #         model_name="refreshtoken",
23    #         index=models.Index(fields=["token"], name="authentik_p_token_1a841f_idx"),
24    #     ),
25    # ]
26    operations = []
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        ("authentik_providers_oauth2", "0018_alter_accesstoken_expires_and_more"),
12        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13    ]
14
15    # Original preserved
16    # See https://github.com/goauthentik/authentik/issues/11874
17    # operations = [
18    #     migrations.AddIndex(
19    #         model_name="accesstoken",
20    #         index=models.Index(fields=["token"], name="authentik_p_token_4bc870_idx"),
21    #     ),
22    #     migrations.AddIndex(
23    #         model_name="refreshtoken",
24    #         index=models.Index(fields=["token"], name="authentik_p_token_1a841f_idx"),
25    #     ),
26    # ]
27    operations = []

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_oauth2', '0018_alter_accesstoken_expires_and_more'), ('authentik_core', '__first__')]
operations = []