authentik.brands.migrations.0013_brandclientcertificate_and_more
1# Generated by Django 5.2.15 on 2026-06-23 15:35 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_brands", "0012_brand_flow_lockdown"), 11 ("authentik_crypto", "0006_certificatekeypair_cert_expiry_and_more"), 12 ] 13 14 operations = [ 15 migrations.SeparateDatabaseAndState( 16 database_operations=[], 17 state_operations=[ 18 migrations.CreateModel( 19 name="BrandClientCertificate", 20 fields=[ 21 ( 22 "id", 23 models.AutoField( 24 auto_created=True, 25 primary_key=True, 26 serialize=False, 27 verbose_name="ID", 28 ), 29 ), 30 ( 31 "brand", 32 models.ForeignKey( 33 on_delete=django.db.models.deletion.CASCADE, 34 to="authentik_brands.brand", 35 ), 36 ), 37 ( 38 "certificate_key_pair", 39 models.ForeignKey( 40 db_column="certificatekeypair_id", 41 on_delete=django.db.models.deletion.CASCADE, 42 to="authentik_crypto.certificatekeypair", 43 ), 44 ), 45 ], 46 options={ 47 "db_table": "authentik_brands_brand_client_certificates", 48 "unique_together": {("brand", "certificate_key_pair")}, 49 "verbose_name": "Brand Client Certificate", 50 "verbose_name_plural": "Brand Client Certificates", 51 }, 52 ), 53 migrations.AlterField( 54 model_name="brand", 55 name="client_certificates", 56 field=models.ManyToManyField( 57 blank=True, 58 default=None, 59 help_text="Certificates used for client authentication.", 60 through="authentik_brands.BrandClientCertificate", 61 to="authentik_crypto.certificatekeypair", 62 ), 63 ), 64 ], 65 ), 66 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_brands", "0012_brand_flow_lockdown"), 12 ("authentik_crypto", "0006_certificatekeypair_cert_expiry_and_more"), 13 ] 14 15 operations = [ 16 migrations.SeparateDatabaseAndState( 17 database_operations=[], 18 state_operations=[ 19 migrations.CreateModel( 20 name="BrandClientCertificate", 21 fields=[ 22 ( 23 "id", 24 models.AutoField( 25 auto_created=True, 26 primary_key=True, 27 serialize=False, 28 verbose_name="ID", 29 ), 30 ), 31 ( 32 "brand", 33 models.ForeignKey( 34 on_delete=django.db.models.deletion.CASCADE, 35 to="authentik_brands.brand", 36 ), 37 ), 38 ( 39 "certificate_key_pair", 40 models.ForeignKey( 41 db_column="certificatekeypair_id", 42 on_delete=django.db.models.deletion.CASCADE, 43 to="authentik_crypto.certificatekeypair", 44 ), 45 ), 46 ], 47 options={ 48 "db_table": "authentik_brands_brand_client_certificates", 49 "unique_together": {("brand", "certificate_key_pair")}, 50 "verbose_name": "Brand Client Certificate", 51 "verbose_name_plural": "Brand Client Certificates", 52 }, 53 ), 54 migrations.AlterField( 55 model_name="brand", 56 name="client_certificates", 57 field=models.ManyToManyField( 58 blank=True, 59 default=None, 60 help_text="Certificates used for client authentication.", 61 through="authentik_brands.BrandClientCertificate", 62 to="authentik_crypto.certificatekeypair", 63 ), 64 ), 65 ], 66 ), 67 ]
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_brands', '0012_brand_flow_lockdown'), ('authentik_crypto', '0006_certificatekeypair_cert_expiry_and_more')]
operations =
[<SeparateDatabaseAndState database_operations=[], state_operations=[<CreateModel name='BrandClientCertificate', fields=[('id', <django.db.models.fields.AutoField>), ('brand', <django.db.models.fields.related.ForeignKey>), ('certificate_key_pair', <django.db.models.fields.related.ForeignKey>)], options={'db_table': 'authentik_brands_brand_client_certificates', 'unique_together': {('brand', 'certificate_key_pair')}, 'verbose_name': 'Brand Client Certificate', 'verbose_name_plural': 'Brand Client Certificates'}>, <AlterField model_name='brand', name='client_certificates', field=<django.db.models.fields.related.ManyToManyField>>]>]