authentik.events.migrations.0010_rename_group_notificationrule_destination_group_and_more
1# Generated by Django 5.1.11 on 2025-06-16 23:21 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_events", "0009_remove_notificationtransport_webhook_mapping_and_more"), 10 ] 11 12 operations = [ 13 migrations.RenameField( 14 model_name="notificationrule", 15 old_name="group", 16 new_name="destination_group", 17 ), 18 migrations.AddField( 19 model_name="notificationrule", 20 name="destination_event_user", 21 field=models.BooleanField( 22 default=False, 23 help_text="When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.", 24 ), 25 ), 26 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_events", "0009_remove_notificationtransport_webhook_mapping_and_more"), 11 ] 12 13 operations = [ 14 migrations.RenameField( 15 model_name="notificationrule", 16 old_name="group", 17 new_name="destination_group", 18 ), 19 migrations.AddField( 20 model_name="notificationrule", 21 name="destination_event_user", 22 field=models.BooleanField( 23 default=False, 24 help_text="When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.", 25 ), 26 ), 27 ]
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.