authentik.policies.event_matcher.migrations.0019_alter_eventmatcherpolicy_app
1# Generated by Django 3.2.8 on 2021-10-09 17:43 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_policies_event_matcher", "0018_alter_eventmatcherpolicy_action"), 9 ] 10 11 operations = [ 12 migrations.AlterField( 13 model_name="eventmatcherpolicy", 14 name="app", 15 field=models.TextField( 16 blank=True, 17 choices=[ 18 ("authentik.admin", "authentik Admin"), 19 ("authentik.api", "authentik API"), 20 ("authentik.crypto", "authentik Crypto"), 21 ("authentik.events", "authentik Events"), 22 ("authentik.flows", "authentik Flows"), 23 ("authentik.lib", "authentik lib"), 24 ("authentik.outposts", "authentik Outpost"), 25 ("authentik.policies.dummy", "authentik Policies.Dummy"), 26 ("authentik.policies.event_matcher", "authentik Policies.Event Matcher"), 27 ("authentik.policies.expiry", "authentik Policies.Expiry"), 28 ("authentik.policies.expression", "authentik Policies.Expression"), 29 ("authentik.policies.hibp", "authentik Policies.HaveIBeenPwned"), 30 ("authentik.policies.password", "authentik Policies.Password"), 31 ("authentik.policies.reputation", "authentik Policies.Reputation"), 32 ("authentik.policies", "authentik Policies"), 33 ("authentik.providers.ldap", "authentik Providers.LDAP"), 34 ("authentik.providers.oauth2", "authentik Providers.OAuth2"), 35 ("authentik.providers.proxy", "authentik Providers.Proxy"), 36 ("authentik.providers.saml", "authentik Providers.SAML"), 37 ("authentik.recovery", "authentik Recovery"), 38 ("authentik.sources.ldap", "authentik Sources.LDAP"), 39 ("authentik.sources.oauth", "authentik Sources.OAuth"), 40 ("authentik.sources.plex", "authentik Sources.Plex"), 41 ("authentik.sources.saml", "authentik Sources.SAML"), 42 ("authentik.sources.scim", "authentik Sources.SCIM"), 43 ("authentik.stages.authenticator_duo", "authentik Stages.Authenticator.Duo"), 44 ("authentik.stages.authenticator_sms", "authentik Stages.Authenticator.SMS"), 45 ( 46 "authentik.stages.authenticator_static", 47 "authentik Stages.Authenticator.Static", 48 ), 49 ("authentik.stages.authenticator_totp", "authentik Stages.Authenticator.TOTP"), 50 ( 51 "authentik.stages.authenticator_validate", 52 "authentik Stages.Authenticator.Validate", 53 ), 54 ( 55 "authentik.stages.authenticator_webauthn", 56 "authentik Stages.Authenticator.WebAuthn", 57 ), 58 ("authentik.stages.captcha", "authentik Stages.Captcha"), 59 ("authentik.stages.consent", "authentik Stages.Consent"), 60 ("authentik.stages.deny", "authentik Stages.Deny"), 61 ("authentik.stages.dummy", "authentik Stages.Dummy"), 62 ("authentik.stages.email", "authentik Stages.Email"), 63 ("authentik.stages.identification", "authentik Stages.Identification"), 64 ("authentik.stages.invitation", "authentik Stages.User Invitation"), 65 ("authentik.stages.password", "authentik Stages.Password"), 66 ("authentik.stages.prompt", "authentik Stages.Prompt"), 67 ("authentik.stages.user_delete", "authentik Stages.User Delete"), 68 ("authentik.stages.user_login", "authentik Stages.User Login"), 69 ("authentik.stages.user_logout", "authentik Stages.User Logout"), 70 ("authentik.stages.user_write", "authentik Stages.User Write"), 71 ("authentik.brands", "authentik Brands"), 72 ("authentik.blueprints", "authentik Blueprints"), 73 ("authentik.core", "authentik Core"), 74 ], 75 default="", 76 help_text=( 77 "Match events created by selected application. When left empty, all" 78 " applications are matched." 79 ), 80 ), 81 ), 82 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_policies_event_matcher", "0018_alter_eventmatcherpolicy_action"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="eventmatcherpolicy", 15 name="app", 16 field=models.TextField( 17 blank=True, 18 choices=[ 19 ("authentik.admin", "authentik Admin"), 20 ("authentik.api", "authentik API"), 21 ("authentik.crypto", "authentik Crypto"), 22 ("authentik.events", "authentik Events"), 23 ("authentik.flows", "authentik Flows"), 24 ("authentik.lib", "authentik lib"), 25 ("authentik.outposts", "authentik Outpost"), 26 ("authentik.policies.dummy", "authentik Policies.Dummy"), 27 ("authentik.policies.event_matcher", "authentik Policies.Event Matcher"), 28 ("authentik.policies.expiry", "authentik Policies.Expiry"), 29 ("authentik.policies.expression", "authentik Policies.Expression"), 30 ("authentik.policies.hibp", "authentik Policies.HaveIBeenPwned"), 31 ("authentik.policies.password", "authentik Policies.Password"), 32 ("authentik.policies.reputation", "authentik Policies.Reputation"), 33 ("authentik.policies", "authentik Policies"), 34 ("authentik.providers.ldap", "authentik Providers.LDAP"), 35 ("authentik.providers.oauth2", "authentik Providers.OAuth2"), 36 ("authentik.providers.proxy", "authentik Providers.Proxy"), 37 ("authentik.providers.saml", "authentik Providers.SAML"), 38 ("authentik.recovery", "authentik Recovery"), 39 ("authentik.sources.ldap", "authentik Sources.LDAP"), 40 ("authentik.sources.oauth", "authentik Sources.OAuth"), 41 ("authentik.sources.plex", "authentik Sources.Plex"), 42 ("authentik.sources.saml", "authentik Sources.SAML"), 43 ("authentik.sources.scim", "authentik Sources.SCIM"), 44 ("authentik.stages.authenticator_duo", "authentik Stages.Authenticator.Duo"), 45 ("authentik.stages.authenticator_sms", "authentik Stages.Authenticator.SMS"), 46 ( 47 "authentik.stages.authenticator_static", 48 "authentik Stages.Authenticator.Static", 49 ), 50 ("authentik.stages.authenticator_totp", "authentik Stages.Authenticator.TOTP"), 51 ( 52 "authentik.stages.authenticator_validate", 53 "authentik Stages.Authenticator.Validate", 54 ), 55 ( 56 "authentik.stages.authenticator_webauthn", 57 "authentik Stages.Authenticator.WebAuthn", 58 ), 59 ("authentik.stages.captcha", "authentik Stages.Captcha"), 60 ("authentik.stages.consent", "authentik Stages.Consent"), 61 ("authentik.stages.deny", "authentik Stages.Deny"), 62 ("authentik.stages.dummy", "authentik Stages.Dummy"), 63 ("authentik.stages.email", "authentik Stages.Email"), 64 ("authentik.stages.identification", "authentik Stages.Identification"), 65 ("authentik.stages.invitation", "authentik Stages.User Invitation"), 66 ("authentik.stages.password", "authentik Stages.Password"), 67 ("authentik.stages.prompt", "authentik Stages.Prompt"), 68 ("authentik.stages.user_delete", "authentik Stages.User Delete"), 69 ("authentik.stages.user_login", "authentik Stages.User Login"), 70 ("authentik.stages.user_logout", "authentik Stages.User Logout"), 71 ("authentik.stages.user_write", "authentik Stages.User Write"), 72 ("authentik.brands", "authentik Brands"), 73 ("authentik.blueprints", "authentik Blueprints"), 74 ("authentik.core", "authentik Core"), 75 ], 76 default="", 77 help_text=( 78 "Match events created by selected application. When left empty, all" 79 " applications are matched." 80 ), 81 ), 82 ), 83 ]
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.