authentik.providers.radius.migrations.0002_radiusprovider_mfa_support
1# Generated by Django 4.2.6 on 2023-10-18 15:09 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_providers_radius", "0001_initial"), 9 ] 10 11 operations = [ 12 migrations.AddField( 13 model_name="radiusprovider", 14 name="mfa_support", 15 field=models.BooleanField( 16 default=True, 17 help_text="When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.", 18 verbose_name="MFA Support", 19 ), 20 ), 21 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_providers_radius", "0001_initial"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="radiusprovider", 15 name="mfa_support", 16 field=models.BooleanField( 17 default=True, 18 help_text="When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.", 19 verbose_name="MFA Support", 20 ), 21 ), 22 ]
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.