authentik.providers.oauth2.migrations.0010_alter_oauth2provider_verification_keys
1# Generated by Django 4.0.3 on 2022-03-31 18:17 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_crypto", "0003_certificatekeypair_managed"), 9 ("authentik_providers_oauth2", "0009_oauth2provider_verification_keys_and_more"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="oauth2provider", 15 name="verification_keys", 16 field=models.ManyToManyField( 17 blank=True, 18 default=None, 19 help_text=( 20 "JWTs created with the configured certificates can authenticate with this" 21 " provider." 22 ), 23 related_name="+", 24 to="authentik_crypto.certificatekeypair", 25 verbose_name="Allowed certificates for JWT-based client_credentials", 26 ), 27 ), 28 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_crypto", "0003_certificatekeypair_managed"), 10 ("authentik_providers_oauth2", "0009_oauth2provider_verification_keys_and_more"), 11 ] 12 13 operations = [ 14 migrations.AlterField( 15 model_name="oauth2provider", 16 name="verification_keys", 17 field=models.ManyToManyField( 18 blank=True, 19 default=None, 20 help_text=( 21 "JWTs created with the configured certificates can authenticate with this" 22 " provider." 23 ), 24 related_name="+", 25 to="authentik_crypto.certificatekeypair", 26 verbose_name="Allowed certificates for JWT-based client_credentials", 27 ), 28 ), 29 ]
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.