authentik.policies.migrations.0009_alter_policy_name

 1# Generated by Django 4.1.4 on 2022-12-25 13:46
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_policies", "0008_policybinding_authentik_p_policy__534e15_idx_and_more"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="policy",
14            name="name",
15            field=models.TextField(default="unnamed-policy"),
16            preserve_default=False,
17        ),
18    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_policies", "0008_policybinding_authentik_p_policy__534e15_idx_and_more"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="policy",
15            name="name",
16            field=models.TextField(default="unnamed-policy"),
17            preserve_default=False,
18        ),
19    ]

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', '0008_policybinding_authentik_p_policy__534e15_idx_and_more')]
operations = [<AlterField model_name='policy', name='name', field=<django.db.models.fields.TextField>, preserve_default=False>]