authentik.providers.radius.migrations.0003_radiusproviderpropertymapping
1# Generated by Django 5.0.7 on 2024-07-17 10:01 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0035_alter_group_options_and_more"), 11 ("authentik_providers_radius", "0002_radiusprovider_mfa_support"), 12 ] 13 14 operations = [ 15 migrations.CreateModel( 16 name="RadiusProviderPropertyMapping", 17 fields=[ 18 ( 19 "propertymapping_ptr", 20 models.OneToOneField( 21 auto_created=True, 22 on_delete=django.db.models.deletion.CASCADE, 23 parent_link=True, 24 primary_key=True, 25 serialize=False, 26 to="authentik_core.propertymapping", 27 ), 28 ), 29 ], 30 options={ 31 "verbose_name": "Radius Property Mapping", 32 "verbose_name_plural": "Radius Property Mappings", 33 }, 34 bases=("authentik_core.propertymapping",), 35 ), 36 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_core", "0035_alter_group_options_and_more"), 12 ("authentik_providers_radius", "0002_radiusprovider_mfa_support"), 13 ] 14 15 operations = [ 16 migrations.CreateModel( 17 name="RadiusProviderPropertyMapping", 18 fields=[ 19 ( 20 "propertymapping_ptr", 21 models.OneToOneField( 22 auto_created=True, 23 on_delete=django.db.models.deletion.CASCADE, 24 parent_link=True, 25 primary_key=True, 26 serialize=False, 27 to="authentik_core.propertymapping", 28 ), 29 ), 30 ], 31 options={ 32 "verbose_name": "Radius Property Mapping", 33 "verbose_name_plural": "Radius Property Mappings", 34 }, 35 bases=("authentik_core.propertymapping",), 36 ), 37 ]
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.