authentik.stages.authenticator_static.migrations.0009_throttling
1# Generated by Django 3.0.5 on 2020-04-16 13:41 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_stages_authenticator_static", "0008_initial"), 9 ] 10 11 operations = [ 12 migrations.AddField( 13 model_name="staticdevice", 14 name="throttling_failure_count", 15 field=models.PositiveIntegerField( 16 default=0, help_text="Number of successive failed attempts." 17 ), 18 ), 19 migrations.AddField( 20 model_name="staticdevice", 21 name="throttling_failure_timestamp", 22 field=models.DateTimeField( 23 blank=True, 24 default=None, 25 help_text="A timestamp of the last failed verification attempt. Null if last attempt succeeded.", 26 null=True, 27 ), 28 ), 29 migrations.AlterModelOptions( 30 name="staticdevice", 31 options={"verbose_name": "Static device", "verbose_name_plural": "Static devices"}, 32 ), 33 migrations.AlterModelOptions( 34 name="staticdevice", 35 options={"verbose_name": "Static Device", "verbose_name_plural": "Static Devices"}, 36 ), 37 migrations.AlterModelOptions( 38 name="statictoken", 39 options={"verbose_name": "Static Token", "verbose_name_plural": "Static Tokens"}, 40 ), 41 migrations.AlterModelOptions( 42 name="authenticatorstaticstage", 43 options={ 44 "verbose_name": "Static Authenticator Setup Stage", 45 "verbose_name_plural": "Static Authenticator Setup Stages", 46 }, 47 ), 48 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_stages_authenticator_static", "0008_initial"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="staticdevice", 15 name="throttling_failure_count", 16 field=models.PositiveIntegerField( 17 default=0, help_text="Number of successive failed attempts." 18 ), 19 ), 20 migrations.AddField( 21 model_name="staticdevice", 22 name="throttling_failure_timestamp", 23 field=models.DateTimeField( 24 blank=True, 25 default=None, 26 help_text="A timestamp of the last failed verification attempt. Null if last attempt succeeded.", 27 null=True, 28 ), 29 ), 30 migrations.AlterModelOptions( 31 name="staticdevice", 32 options={"verbose_name": "Static device", "verbose_name_plural": "Static devices"}, 33 ), 34 migrations.AlterModelOptions( 35 name="staticdevice", 36 options={"verbose_name": "Static Device", "verbose_name_plural": "Static Devices"}, 37 ), 38 migrations.AlterModelOptions( 39 name="statictoken", 40 options={"verbose_name": "Static Token", "verbose_name_plural": "Static Tokens"}, 41 ), 42 migrations.AlterModelOptions( 43 name="authenticatorstaticstage", 44 options={ 45 "verbose_name": "Static Authenticator Setup Stage", 46 "verbose_name_plural": "Static Authenticator Setup Stages", 47 }, 48 ), 49 ]
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.
operations =
[<AddField model_name='staticdevice', name='throttling_failure_count', field=<django.db.models.fields.PositiveIntegerField>>, <AddField model_name='staticdevice', name='throttling_failure_timestamp', field=<django.db.models.fields.DateTimeField>>, <AlterModelOptions name='staticdevice', options={'verbose_name': 'Static device', 'verbose_name_plural': 'Static devices'}>, <AlterModelOptions name='staticdevice', options={'verbose_name': 'Static Device', 'verbose_name_plural': 'Static Devices'}>, <AlterModelOptions name='statictoken', options={'verbose_name': 'Static Token', 'verbose_name_plural': 'Static Tokens'}>, <AlterModelOptions name='authenticatorstaticstage', options={'verbose_name': 'Static Authenticator Setup Stage', 'verbose_name_plural': 'Static Authenticator Setup Stages'}>]