Skip to content

Commit

Permalink
fix value too long for type character varying(150) - received push to…
Browse files Browse the repository at this point in the history
…ken with 164 chars
  • Loading branch information
cherijs committed Jul 13, 2023
1 parent 4daee23 commit 2127221
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions django_walletpass/migrations/0010_alter_registration_push_token.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.14 on 2023-07-13 10:41

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('django_walletpass', '0009_auto_20230709_2143'),
]

operations = [
migrations.AlterField(
model_name='registration',
name='push_token',
field=models.CharField(max_length=255),
),
]
2 changes: 1 addition & 1 deletion django_walletpass/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class Registration(models.Model):
Registration of a Pass on a device
"""
device_library_identifier = models.CharField(max_length=150)
push_token = models.CharField(max_length=150)
push_token = models.CharField(max_length=255)
pazz = models.ForeignKey(
Pass,
on_delete=models.CASCADE,
Expand Down

0 comments on commit 2127221

Please sign in to comment.