authentik.policies.migrations.0008_policybinding_authentik_p_policy__534e15_idx_and_more
1# Generated by Django 4.1.2 on 2022-10-19 19:23 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_policies", "0007_policybindingmodel_policy_engine_mode"), 9 ] 10 11 operations = [ 12 migrations.AddIndex( 13 model_name="policybinding", 14 index=models.Index(fields=["policy"], name="authentik_p_policy__534e15_idx"), 15 ), 16 migrations.AddIndex( 17 model_name="policybinding", 18 index=models.Index(fields=["group"], name="authentik_p_group_i_5d2d24_idx"), 19 ), 20 migrations.AddIndex( 21 model_name="policybinding", 22 index=models.Index(fields=["user"], name="authentik_p_user_id_603323_idx"), 23 ), 24 migrations.AddIndex( 25 model_name="policybinding", 26 index=models.Index(fields=["target"], name="authentik_p_target__2e4d50_idx"), 27 ), 28 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_policies", "0007_policybindingmodel_policy_engine_mode"), 10 ] 11 12 operations = [ 13 migrations.AddIndex( 14 model_name="policybinding", 15 index=models.Index(fields=["policy"], name="authentik_p_policy__534e15_idx"), 16 ), 17 migrations.AddIndex( 18 model_name="policybinding", 19 index=models.Index(fields=["group"], name="authentik_p_group_i_5d2d24_idx"), 20 ), 21 migrations.AddIndex( 22 model_name="policybinding", 23 index=models.Index(fields=["user"], name="authentik_p_user_id_603323_idx"), 24 ), 25 migrations.AddIndex( 26 model_name="policybinding", 27 index=models.Index(fields=["target"], name="authentik_p_target__2e4d50_idx"), 28 ), 29 ]
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.
operations =
[<AddIndex model_name='policybinding', index=<Index: fields=['policy'] name='authentik_p_policy__534e15_idx'>>, <AddIndex model_name='policybinding', index=<Index: fields=['group'] name='authentik_p_group_i_5d2d24_idx'>>, <AddIndex model_name='policybinding', index=<Index: fields=['user'] name='authentik_p_user_id_603323_idx'>>, <AddIndex model_name='policybinding', index=<Index: fields=['target'] name='authentik_p_target__2e4d50_idx'>>]