authentik.providers.oauth2.migrations.0012_remove_oauth2provider_verification_keys
1# Generated by Django 4.0.5 on 2022-06-04 21:26 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_providers_oauth2", "0011_oauth2provider_jwks_sources_and_more"), 9 ] 10 11 operations = [ 12 migrations.RemoveField( 13 model_name="oauth2provider", 14 name="verification_keys", 15 ), 16 migrations.AlterField( 17 model_name="oauth2provider", 18 name="client_type", 19 field=models.CharField( 20 choices=[("confidential", "Confidential"), ("public", "Public")], 21 default="confidential", 22 help_text=( 23 "Confidential clients are capable of maintaining the confidentiality of their" 24 " credentials. Public clients are incapable" 25 ), 26 max_length=30, 27 verbose_name="Client Type", 28 ), 29 ), 30 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_providers_oauth2", "0011_oauth2provider_jwks_sources_and_more"), 10 ] 11 12 operations = [ 13 migrations.RemoveField( 14 model_name="oauth2provider", 15 name="verification_keys", 16 ), 17 migrations.AlterField( 18 model_name="oauth2provider", 19 name="client_type", 20 field=models.CharField( 21 choices=[("confidential", "Confidential"), ("public", "Public")], 22 default="confidential", 23 help_text=( 24 "Confidential clients are capable of maintaining the confidentiality of their" 25 " credentials. Public clients are incapable" 26 ), 27 max_length=30, 28 verbose_name="Client Type", 29 ), 30 ), 31 ]
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.