authentik.core.migrations.0050_user_last_updated_and_more
1# Generated by Django 5.1.11 on 2025-07-15 15:21 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("auth", "0012_alter_user_first_name_max_length"), 10 ("authentik_core", "0049_alter_token_options"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="user", 16 name="last_updated", 17 field=models.DateTimeField(auto_now=True), 18 ), 19 migrations.AddIndex( 20 model_name="user", 21 index=models.Index(fields=["last_updated"], name="authentik_c_last_up_ed7486_idx"), 22 ), 23 migrations.AddIndex( 24 model_name="user", 25 index=models.Index(fields=["date_joined"], name="authentik_c_date_jo_58c256_idx"), 26 ), 27 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("auth", "0012_alter_user_first_name_max_length"), 11 ("authentik_core", "0049_alter_token_options"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="user", 17 name="last_updated", 18 field=models.DateTimeField(auto_now=True), 19 ), 20 migrations.AddIndex( 21 model_name="user", 22 index=models.Index(fields=["last_updated"], name="authentik_c_last_up_ed7486_idx"), 23 ), 24 migrations.AddIndex( 25 model_name="user", 26 index=models.Index(fields=["date_joined"], name="authentik_c_date_jo_58c256_idx"), 27 ), 28 ]
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.
dependencies =
[('auth', '0012_alter_user_first_name_max_length'), ('authentik_core', '0049_alter_token_options')]
operations =
[<AddField model_name='user', name='last_updated', field=<django.db.models.fields.DateTimeField>>, <AddIndex model_name='user', index=<Index: fields=['last_updated'] name='authentik_c_last_up_ed7486_idx'>>, <AddIndex model_name='user', index=<Index: fields=['date_joined'] name='authentik_c_date_jo_58c256_idx'>>]