authentik.policies.reputation.migrations.0005_reputation_expires_reputation_expiring
1# Generated by Django 4.2.4 on 2023-08-31 10:42 2 3from django.db import migrations, models 4 5import authentik.policies.reputation.models 6 7 8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_policies_reputation", "0004_reputationpolicy_authentik_p_policy__8f0d70_idx"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="reputation", 16 name="expires", 17 field=models.DateTimeField( 18 default=authentik.policies.reputation.models.reputation_expiry 19 ), 20 ), 21 migrations.AddField( 22 model_name="reputation", 23 name="expiring", 24 field=models.BooleanField(default=True), 25 ), 26 migrations.AlterModelOptions( 27 name="reputation", 28 options={ 29 "verbose_name": "Reputation Score", 30 "verbose_name_plural": "Reputation Scores", 31 }, 32 ), 33 ]
class
Migration(django.db.migrations.migration.Migration):
9class Migration(migrations.Migration): 10 dependencies = [ 11 ("authentik_policies_reputation", "0004_reputationpolicy_authentik_p_policy__8f0d70_idx"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="reputation", 17 name="expires", 18 field=models.DateTimeField( 19 default=authentik.policies.reputation.models.reputation_expiry 20 ), 21 ), 22 migrations.AddField( 23 model_name="reputation", 24 name="expiring", 25 field=models.BooleanField(default=True), 26 ), 27 migrations.AlterModelOptions( 28 name="reputation", 29 options={ 30 "verbose_name": "Reputation Score", 31 "verbose_name_plural": "Reputation Scores", 32 }, 33 ), 34 ]
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 =
[('authentik_policies_reputation', '0004_reputationpolicy_authentik_p_policy__8f0d70_idx')]
operations =
[<AddField model_name='reputation', name='expires', field=<django.db.models.fields.DateTimeField>>, <AddField model_name='reputation', name='expiring', field=<django.db.models.fields.BooleanField>>, <AlterModelOptions name='reputation', options={'verbose_name': 'Reputation Score', 'verbose_name_plural': 'Reputation Scores'}>]