Skip to content

Commit

Permalink
chore: add migration for new fields in users.Application
Browse files Browse the repository at this point in the history
Refs: HP-2441
  • Loading branch information
charn committed Jul 30, 2024
1 parent 24878c5 commit abbac31
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions users/migrations/0034_application_algorithm_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Generated by Django 4.2.14 on 2024-07-29 10:44

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("users", "0033_alter_loginmethod_provider_id"),
]

operations = [
migrations.AddField(
model_name="application",
name="algorithm",
field=models.CharField(
blank=True,
choices=[
("", "No OIDC support"),
("RS256", "RSA with SHA-2 256"),
("HS256", "HMAC with SHA-2 256"),
],
default="",
max_length=5,
),
),
migrations.AlterField(
model_name="application",
name="authorization_grant_type",
field=models.CharField(
choices=[
("authorization-code", "Authorization code"),
("implicit", "Implicit"),
("password", "Resource owner password-based"),
("client-credentials", "Client credentials"),
("openid-hybrid", "OpenID connect hybrid"),
],
max_length=32,
),
),
migrations.AlterField(
model_name="application",
name="user",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="%(app_label)s_%(class)s",
to=settings.AUTH_USER_MODEL,
),
),
]

0 comments on commit abbac31

Please sign in to comment.