Skip to content

Commit

Permalink
Increase provider_user_id max_length
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Jun 20, 2022
1 parent 582d7d9 commit 67b540b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions etna/users/migrations/0003_alter_idpprofile_provider_user_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.13 on 2022-06-20 12:12

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("users", "0002_initial"),
]

operations = [
migrations.AlterField(
model_name="idpprofile",
name="provider_user_id",
field=models.CharField(db_index=True, max_length=100),
),
]
2 changes: 1 addition & 1 deletion etna/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IDPProfile(models.Model):
settings.AUTH_USER_MODEL, related_name="idp_profiles", on_delete=models.CASCADE
)
provider_name = models.CharField(max_length=100, db_index=True)
provider_user_id = models.CharField(max_length=36, db_index=True)
provider_user_id = models.CharField(max_length=100, db_index=True)
created = models.DateTimeField(auto_now_add=True)
last_login = models.DateTimeField(null=True)

Expand Down

0 comments on commit 67b540b

Please sign in to comment.