authentik.sources.plex.migrations.0004_groupplexsourceconnection_plexsourcepropertymapping_and_more
1# Generated by Django 5.0.7 on 2024-08-05 11:29 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0039_source_group_matching_mode_alter_group_name_and_more"), 11 ("authentik_sources_plex", "0003_alter_plexsource_plex_token"), 12 ] 13 14 operations = [ 15 migrations.CreateModel( 16 name="GroupPlexSourceConnection", 17 fields=[ 18 ( 19 "groupsourceconnection_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.groupsourceconnection", 27 ), 28 ), 29 ], 30 options={ 31 "verbose_name": "Group Plex Source Connection", 32 "verbose_name_plural": "Group Plex Source Connections", 33 }, 34 bases=("authentik_core.groupsourceconnection",), 35 ), 36 migrations.CreateModel( 37 name="PlexSourcePropertyMapping", 38 fields=[ 39 ( 40 "propertymapping_ptr", 41 models.OneToOneField( 42 auto_created=True, 43 on_delete=django.db.models.deletion.CASCADE, 44 parent_link=True, 45 primary_key=True, 46 serialize=False, 47 to="authentik_core.propertymapping", 48 ), 49 ), 50 ], 51 options={ 52 "verbose_name": "Plex Source Property Mapping", 53 "verbose_name_plural": "Plex Source Property Mappings", 54 }, 55 bases=("authentik_core.propertymapping",), 56 ), 57 migrations.RenameModel( 58 old_name="PlexSourceConnection", 59 new_name="UserPlexSourceConnection", 60 ), 61 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_core", "0039_source_group_matching_mode_alter_group_name_and_more"), 12 ("authentik_sources_plex", "0003_alter_plexsource_plex_token"), 13 ] 14 15 operations = [ 16 migrations.CreateModel( 17 name="GroupPlexSourceConnection", 18 fields=[ 19 ( 20 "groupsourceconnection_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.groupsourceconnection", 28 ), 29 ), 30 ], 31 options={ 32 "verbose_name": "Group Plex Source Connection", 33 "verbose_name_plural": "Group Plex Source Connections", 34 }, 35 bases=("authentik_core.groupsourceconnection",), 36 ), 37 migrations.CreateModel( 38 name="PlexSourcePropertyMapping", 39 fields=[ 40 ( 41 "propertymapping_ptr", 42 models.OneToOneField( 43 auto_created=True, 44 on_delete=django.db.models.deletion.CASCADE, 45 parent_link=True, 46 primary_key=True, 47 serialize=False, 48 to="authentik_core.propertymapping", 49 ), 50 ), 51 ], 52 options={ 53 "verbose_name": "Plex Source Property Mapping", 54 "verbose_name_plural": "Plex Source Property Mappings", 55 }, 56 bases=("authentik_core.propertymapping",), 57 ), 58 migrations.RenameModel( 59 old_name="PlexSourceConnection", 60 new_name="UserPlexSourceConnection", 61 ), 62 ]
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_core', '0039_source_group_matching_mode_alter_group_name_and_more'), ('authentik_sources_plex', '0003_alter_plexsource_plex_token')]
operations =
[<CreateModel name='GroupPlexSourceConnection', fields=[('groupsourceconnection_ptr', <django.db.models.fields.related.OneToOneField>)], options={'verbose_name': 'Group Plex Source Connection', 'verbose_name_plural': 'Group Plex Source Connections'}, bases=('authentik_core.groupsourceconnection',)>, <CreateModel name='PlexSourcePropertyMapping', fields=[('propertymapping_ptr', <django.db.models.fields.related.OneToOneField>)], options={'verbose_name': 'Plex Source Property Mapping', 'verbose_name_plural': 'Plex Source Property Mappings'}, bases=('authentik_core.propertymapping',)>, <RenameModel old_name='PlexSourceConnection', new_name='UserPlexSourceConnection'>]