Skip to content

Commit

Permalink
[db] Make sender an EmailField
Browse files Browse the repository at this point in the history
this will accomodate the larger size
  • Loading branch information
atodorov committed May 25, 2019
1 parent a61ff6e commit edc1196
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions tcms_github_marketplace/migrations/0003_sender_email_field.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.1 on 2019-05-25 18:43

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tcms_github_marketplace', '0002_update_fields'),
]

operations = [
migrations.AlterField(
model_name='purchase',
name='sender',
field=models.EmailField(db_index=True, max_length=254),
),
]
2 changes: 1 addition & 1 deletion tcms_github_marketplace/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Purchase(models.Model):
"""
vendor = models.CharField(max_length=16, db_index=True, blank=True, null=True)
action = models.CharField(max_length=64, db_index=True)
sender = models.CharField(max_length=64, db_index=True)
sender = models.EmailField(db_index=True)
effective_date = models.DateTimeField(db_index=True)

# this is for internal purposes
Expand Down

0 comments on commit edc1196

Please sign in to comment.