Fix MySQL migration (#57)

* Use CharField, not TextField for MySQL compat.

* black formatting
This commit is contained in:
Scot Hacker 2019-03-25 07:43:53 -07:00 committed by GitHub
parent 70cac8b4e9
commit f6d79879ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 21 deletions

View file

@ -130,7 +130,7 @@ class Comment(models.Model):
task = models.ForeignKey(Task, on_delete=models.CASCADE)
date = models.DateTimeField(default=datetime.datetime.now)
email_from = models.CharField(max_length=320, blank=True, null=True)
email_message_id = models.TextField(blank=True, null=True)
email_message_id = models.CharField(max_length=255, blank=True, null=True)
body = models.TextField(blank=True)