authentik.events.migrations.0015_alter_event_action_choices
1# Generated by Django 5.2.10 on 2026-01-20 18:00 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_events", "0014_notification_hyperlink_notification_hyperlink_label_and_more"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="event", 15 name="action", 16 field=models.TextField( 17 choices=[ 18 ("login", "Login"), 19 ("login_failed", "Login Failed"), 20 ("logout", "Logout"), 21 ("user_write", "User Write"), 22 ("suspicious_request", "Suspicious Request"), 23 ("password_set", "Password Set"), 24 ("secret_view", "Secret View"), 25 ("secret_rotate", "Secret Rotate"), 26 ("invitation_used", "Invite Used"), 27 ("authorize_application", "Authorize Application"), 28 ("source_linked", "Source Linked"), 29 ("impersonation_started", "Impersonation Started"), 30 ("impersonation_ended", "Impersonation Ended"), 31 ("flow_execution", "Flow Execution"), 32 ("policy_execution", "Policy Execution"), 33 ("policy_exception", "Policy Exception"), 34 ("property_mapping_exception", "Property Mapping Exception"), 35 ("system_task_execution", "System Task Execution"), 36 ("system_task_exception", "System Task Exception"), 37 ("system_exception", "System Exception"), 38 ("configuration_error", "Configuration Error"), 39 ("configuration_warning", "Configuration Warning"), 40 ("model_created", "Model Created"), 41 ("model_updated", "Model Updated"), 42 ("model_deleted", "Model Deleted"), 43 ("email_sent", "Email Sent"), 44 ("update_available", "Update Available"), 45 ("export_ready", "Export Ready"), 46 ("custom_", "Custom Prefix"), 47 ] 48 ), 49 ), 50 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_events", "0014_notification_hyperlink_notification_hyperlink_label_and_more"), 11 ] 12 13 operations = [ 14 migrations.AlterField( 15 model_name="event", 16 name="action", 17 field=models.TextField( 18 choices=[ 19 ("login", "Login"), 20 ("login_failed", "Login Failed"), 21 ("logout", "Logout"), 22 ("user_write", "User Write"), 23 ("suspicious_request", "Suspicious Request"), 24 ("password_set", "Password Set"), 25 ("secret_view", "Secret View"), 26 ("secret_rotate", "Secret Rotate"), 27 ("invitation_used", "Invite Used"), 28 ("authorize_application", "Authorize Application"), 29 ("source_linked", "Source Linked"), 30 ("impersonation_started", "Impersonation Started"), 31 ("impersonation_ended", "Impersonation Ended"), 32 ("flow_execution", "Flow Execution"), 33 ("policy_execution", "Policy Execution"), 34 ("policy_exception", "Policy Exception"), 35 ("property_mapping_exception", "Property Mapping Exception"), 36 ("system_task_execution", "System Task Execution"), 37 ("system_task_exception", "System Task Exception"), 38 ("system_exception", "System Exception"), 39 ("configuration_error", "Configuration Error"), 40 ("configuration_warning", "Configuration Warning"), 41 ("model_created", "Model Created"), 42 ("model_updated", "Model Updated"), 43 ("model_deleted", "Model Deleted"), 44 ("email_sent", "Email Sent"), 45 ("update_available", "Update Available"), 46 ("export_ready", "Export Ready"), 47 ("custom_", "Custom Prefix"), 48 ] 49 ), 50 ), 51 ]
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.