authentik.tenants.migrations.0005_tenant_reputation_lower_limit_and_more
1# Generated by Django 5.0.14 on 2025-04-14 07:50 2 3import django.core.validators 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_tenants", "0004_tenant_impersonation_require_reason"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="tenant", 16 name="reputation_lower_limit", 17 field=models.IntegerField( 18 default=-5, 19 help_text="Reputation cannot decrease lower than this value. Zero or negative.", 20 validators=[django.core.validators.MaxValueValidator(0)], 21 ), 22 ), 23 migrations.AddField( 24 model_name="tenant", 25 name="reputation_upper_limit", 26 field=models.IntegerField( 27 default=5, 28 help_text="Reputation cannot increase higher than this value. Zero or positive.", 29 validators=[django.core.validators.MinValueValidator(0)], 30 ), 31 ), 32 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_tenants", "0004_tenant_impersonation_require_reason"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="tenant", 17 name="reputation_lower_limit", 18 field=models.IntegerField( 19 default=-5, 20 help_text="Reputation cannot decrease lower than this value. Zero or negative.", 21 validators=[django.core.validators.MaxValueValidator(0)], 22 ), 23 ), 24 migrations.AddField( 25 model_name="tenant", 26 name="reputation_upper_limit", 27 field=models.IntegerField( 28 default=5, 29 help_text="Reputation cannot increase higher than this value. Zero or positive.", 30 validators=[django.core.validators.MinValueValidator(0)], 31 ), 32 ), 33 ]
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.