authentik.core.migrations.0017_managed

 1# Generated by Django 3.1.4 on 2021-01-30 18:28
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_core", "0016_auto_20201202_2234"),
 9    ]
10
11    operations = [
12        migrations.AddField(
13            model_name="propertymapping",
14            name="managed",
15            field=models.TextField(
16                default=None,
17                help_text=(
18                    "Objects which are managed by authentik. These objects are created and updated"
19                    " automatically. This is flag only indicates that an object can be overwritten"
20                    " by migrations. You can still modify the objects via the API, but expect"
21                    " changes to be overwritten in a later update."
22                ),
23                null=True,
24                verbose_name="Managed by authentik",
25                unique=True,
26            ),
27        ),
28        migrations.AddField(
29            model_name="token",
30            name="managed",
31            field=models.TextField(
32                default=None,
33                help_text=(
34                    "Objects which are managed by authentik. These objects are created and updated"
35                    " automatically. This is flag only indicates that an object can be overwritten"
36                    " by migrations. You can still modify the objects via the API, but expect"
37                    " changes to be overwritten in a later update."
38                ),
39                null=True,
40                verbose_name="Managed by authentik",
41                unique=True,
42            ),
43        ),
44    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_core", "0016_auto_20201202_2234"),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name="propertymapping",
15            name="managed",
16            field=models.TextField(
17                default=None,
18                help_text=(
19                    "Objects which are managed by authentik. These objects are created and updated"
20                    " automatically. This is flag only indicates that an object can be overwritten"
21                    " by migrations. You can still modify the objects via the API, but expect"
22                    " changes to be overwritten in a later update."
23                ),
24                null=True,
25                verbose_name="Managed by authentik",
26                unique=True,
27            ),
28        ),
29        migrations.AddField(
30            model_name="token",
31            name="managed",
32            field=models.TextField(
33                default=None,
34                help_text=(
35                    "Objects which are managed by authentik. These objects are created and updated"
36                    " automatically. This is flag only indicates that an object can be overwritten"
37                    " by migrations. You can still modify the objects via the API, but expect"
38                    " changes to be overwritten in a later update."
39                ),
40                null=True,
41                verbose_name="Managed by authentik",
42                unique=True,
43            ),
44        ),
45    ]

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_core', '0016_auto_20201202_2234')]
operations = [<AddField model_name='propertymapping', name='managed', field=<django.db.models.fields.TextField>>, <AddField model_name='token', name='managed', field=<django.db.models.fields.TextField>>]