authentik.core.migrations.0049_alter_token_options
1# Generated by Django 5.1.11 on 2025-07-03 13:08 2 3from django.db import migrations 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_core", "0048_delete_oldauthenticatedsession_content_type"), 10 ] 11 12 operations = [ 13 migrations.AlterModelOptions( 14 name="token", 15 options={ 16 "permissions": [ 17 ("view_token_key", "View token's key"), 18 ("set_token_key", "Set a token's key"), 19 ], 20 "verbose_name": "Token", 21 "verbose_name_plural": "Tokens", 22 }, 23 ), 24 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_core", "0048_delete_oldauthenticatedsession_content_type"), 11 ] 12 13 operations = [ 14 migrations.AlterModelOptions( 15 name="token", 16 options={ 17 "permissions": [ 18 ("view_token_key", "View token's key"), 19 ("set_token_key", "Set a token's key"), 20 ], 21 "verbose_name": "Token", 22 "verbose_name_plural": "Tokens", 23 }, 24 ), 25 ]
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.