authentik.flows.migrations.0026_alter_flow_options
1# Generated by Django 4.2.6 on 2023-10-10 17:18 2 3from django.db import migrations 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_flows", "0025_alter_flowstagebinding_evaluate_on_plan_and_more"), 9 ] 10 11 operations = [ 12 migrations.AlterModelOptions( 13 name="flow", 14 options={ 15 "permissions": [ 16 ("export_flow", "Can export a Flow"), 17 ("inspect_flow", "Can inspect a Flow's execution"), 18 ("view_flow_cache", "View Flow's cache metrics"), 19 ("clear_flow_cache", "Clear Flow's cache metrics"), 20 ], 21 "verbose_name": "Flow", 22 "verbose_name_plural": "Flows", 23 }, 24 ), 25 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_flows", "0025_alter_flowstagebinding_evaluate_on_plan_and_more"), 10 ] 11 12 operations = [ 13 migrations.AlterModelOptions( 14 name="flow", 15 options={ 16 "permissions": [ 17 ("export_flow", "Can export a Flow"), 18 ("inspect_flow", "Can inspect a Flow's execution"), 19 ("view_flow_cache", "View Flow's cache metrics"), 20 ("clear_flow_cache", "Clear Flow's cache metrics"), 21 ], 22 "verbose_name": "Flow", 23 "verbose_name_plural": "Flows", 24 }, 25 ), 26 ]
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 =
[<AlterModelOptions name='flow', options={'permissions': [('export_flow', 'Can export a Flow'), ('inspect_flow', "Can inspect a Flow's execution"), ('view_flow_cache', "View Flow's cache metrics"), ('clear_flow_cache', "Clear Flow's cache metrics")], 'verbose_name': 'Flow', 'verbose_name_plural': 'Flows'}>]