authentik.sources.oauth.migrations.0003_auto_20210416_0726

 1# Generated by Django 3.2 on 2021-04-16 07:26
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_sources_oauth", "0002_auto_20200520_1108"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="oauthsource",
14            name="access_token_url",
15            field=models.CharField(
16                blank=True,
17                help_text="URL used by authentik to retrieve tokens.",
18                max_length=255,
19                verbose_name="Access Token URL",
20            ),
21        ),
22        migrations.AlterField(
23            model_name="oauthsource",
24            name="authorization_url",
25            field=models.CharField(
26                blank=True,
27                help_text="URL the user is redirect to to conest the flow.",
28                max_length=255,
29                verbose_name="Authorization URL",
30            ),
31        ),
32        migrations.AlterField(
33            model_name="oauthsource",
34            name="profile_url",
35            field=models.CharField(
36                blank=True,
37                help_text="URL used by authentik to get user information.",
38                max_length=255,
39                verbose_name="Profile URL",
40            ),
41        ),
42    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_sources_oauth", "0002_auto_20200520_1108"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="oauthsource",
15            name="access_token_url",
16            field=models.CharField(
17                blank=True,
18                help_text="URL used by authentik to retrieve tokens.",
19                max_length=255,
20                verbose_name="Access Token URL",
21            ),
22        ),
23        migrations.AlterField(
24            model_name="oauthsource",
25            name="authorization_url",
26            field=models.CharField(
27                blank=True,
28                help_text="URL the user is redirect to to conest the flow.",
29                max_length=255,
30                verbose_name="Authorization URL",
31            ),
32        ),
33        migrations.AlterField(
34            model_name="oauthsource",
35            name="profile_url",
36            field=models.CharField(
37                blank=True,
38                help_text="URL used by authentik to get user information.",
39                max_length=255,
40                verbose_name="Profile URL",
41            ),
42        ),
43    ]

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_sources_oauth', '0002_auto_20200520_1108')]
operations = [<AlterField model_name='oauthsource', name='access_token_url', field=<django.db.models.fields.CharField>>, <AlterField model_name='oauthsource', name='authorization_url', field=<django.db.models.fields.CharField>>, <AlterField model_name='oauthsource', name='profile_url', field=<django.db.models.fields.CharField>>]