authentik.policies.migrations.0011_policybinding_failure_result_and_more
1# Generated by Django 4.2.5 on 2023-09-13 18:07 2import authentik.lib.models 3import django.db.models.deletion 4 5from django.db import migrations, models 6 7 8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_policies", "0010_alter_policy_name"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="policybinding", 16 name="failure_result", 17 field=models.BooleanField( 18 default=False, help_text="Result if the Policy execution fails." 19 ), 20 ), 21 migrations.AlterField( 22 model_name="policybinding", 23 name="timeout", 24 field=models.PositiveIntegerField( 25 default=30, help_text="Timeout after which Policy execution is terminated." 26 ), 27 ), 28 migrations.AlterField( 29 model_name="policybinding", 30 name="target", 31 field=authentik.lib.models.InheritanceForeignKey( 32 on_delete=django.db.models.deletion.CASCADE, 33 related_name="bindings", 34 to="authentik_policies.policybindingmodel", 35 ), 36 ), 37 ]
class
Migration(django.db.migrations.migration.Migration):
9class Migration(migrations.Migration): 10 dependencies = [ 11 ("authentik_policies", "0010_alter_policy_name"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="policybinding", 17 name="failure_result", 18 field=models.BooleanField( 19 default=False, help_text="Result if the Policy execution fails." 20 ), 21 ), 22 migrations.AlterField( 23 model_name="policybinding", 24 name="timeout", 25 field=models.PositiveIntegerField( 26 default=30, help_text="Timeout after which Policy execution is terminated." 27 ), 28 ), 29 migrations.AlterField( 30 model_name="policybinding", 31 name="target", 32 field=authentik.lib.models.InheritanceForeignKey( 33 on_delete=django.db.models.deletion.CASCADE, 34 related_name="bindings", 35 to="authentik_policies.policybindingmodel", 36 ), 37 ), 38 ]
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 =
[<AddField model_name='policybinding', name='failure_result', field=<django.db.models.fields.BooleanField>>, <AlterField model_name='policybinding', name='timeout', field=<django.db.models.fields.PositiveIntegerField>>, <AlterField model_name='policybinding', name='target', field=<authentik.lib.models.InheritanceForeignKey>>]