summaryrefslogtreecommitdiffstats
path: root/lib/toaster/orm/models.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-10-22 11:22:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:23:22 +0000
commit349119f44cdad240dda7f4db45992e2539e1416f (patch)
treed9db875b8d29ac68fd30cdf59e60193b142e26a8 /lib/toaster/orm/models.py
parentae754655fa1bc5168f43e8821773e7b7b9440a5d (diff)
downloadbitbake-349119f44cdad240dda7f4db45992e2539e1416f.tar.gz
toaster: orm Fix restrictive LogMessage message length
Log messages can be quite long so use a TextField rather than a char field with max length of 240. mySQL is especially picky about field lengths and will cause an exception if the log is too long. [YOCTO #8475] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/orm/models.py')
-rw-r--r--lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index a784b1bf7..383290583 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -1296,7 +1296,7 @@ class LogMessage(models.Model):
build = models.ForeignKey(Build)
task = models.ForeignKey(Task, blank = True, null=True)
level = models.IntegerField(choices=LOG_LEVEL, default=INFO)
- message = models.CharField(max_length=240)
+ message = models.TextField(blank=True, null=True)
pathname = models.FilePathField(max_length=255, blank=True)
lineno = models.IntegerField(null=True)