authentik.providers.oauth2.migrations.0026_alter_accesstoken_session_and_more
1# Generated by Django 5.0.10 on 2024-12-12 17:16 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0040_provider_invalidation_flow"), 11 ( 12 "authentik_providers_oauth2", 13 "0025_rename_jwks_sources_oauth2provider_jwt_federation_sources_and_more", 14 ), 15 ] 16 17 operations = [ 18 migrations.AlterField( 19 model_name="accesstoken", 20 name="session", 21 field=models.ForeignKey( 22 default=None, 23 null=True, 24 on_delete=django.db.models.deletion.CASCADE, 25 to="authentik_core.authenticatedsession", 26 ), 27 ), 28 migrations.AlterField( 29 model_name="authorizationcode", 30 name="session", 31 field=models.ForeignKey( 32 default=None, 33 null=True, 34 on_delete=django.db.models.deletion.CASCADE, 35 to="authentik_core.authenticatedsession", 36 ), 37 ), 38 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_core", "0040_provider_invalidation_flow"), 12 ( 13 "authentik_providers_oauth2", 14 "0025_rename_jwks_sources_oauth2provider_jwt_federation_sources_and_more", 15 ), 16 ] 17 18 operations = [ 19 migrations.AlterField( 20 model_name="accesstoken", 21 name="session", 22 field=models.ForeignKey( 23 default=None, 24 null=True, 25 on_delete=django.db.models.deletion.CASCADE, 26 to="authentik_core.authenticatedsession", 27 ), 28 ), 29 migrations.AlterField( 30 model_name="authorizationcode", 31 name="session", 32 field=models.ForeignKey( 33 default=None, 34 null=True, 35 on_delete=django.db.models.deletion.CASCADE, 36 to="authentik_core.authenticatedsession", 37 ), 38 ), 39 ]
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.