authentik.brands.migrations.0003_tenant_attributes

 1# Generated by Django 4.0.3 on 2022-04-06 08:28
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_brands", "0002_tenant_flow_user_settings"),
 9    ]
10
11    operations = [
12        migrations.AddField(
13            model_name="brand",
14            name="attributes",
15            field=models.JSONField(blank=True, default=dict),
16        ),
17    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_brands", "0002_tenant_flow_user_settings"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="brand",
15            name="attributes",
16            field=models.JSONField(blank=True, default=dict),
17        ),
18    ]

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_brands', '0002_tenant_flow_user_settings')]
operations = [<AddField model_name='brand', name='attributes', field=<django.db.models.fields.json.JSONField>>]