summaryrefslogtreecommitdiffstats
path: root/bitbake/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:24:31 +0000
commit62e200e3e3f51e74fabfb16b506649cd47b7cc42 (patch)
treefe224643bd55861c4d262b10d3d4f25a4e24873e /bitbake/lib/toaster/orm/models.py
parent78f935df8fafa0ded4decfd89e9bfac52bf5fab2 (diff)
downloadpoky-62e200e3e3f51e74fabfb16b506649cd47b7cc42.tar.gz
bitbake: 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] (Bitbake rev: 349119f44cdad240dda7f4db45992e2539e1416f) 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 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index a784b1bf7a..3832905838 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1296,7 +1296,7 @@ class LogMessage(models.Model):
1296 build = models.ForeignKey(Build) 1296 build = models.ForeignKey(Build)
1297 task = models.ForeignKey(Task, blank = True, null=True) 1297 task = models.ForeignKey(Task, blank = True, null=True)
1298 level = models.IntegerField(choices=LOG_LEVEL, default=INFO) 1298 level = models.IntegerField(choices=LOG_LEVEL, default=INFO)
1299 message = models.CharField(max_length=240) 1299 message = models.TextField(blank=True, null=True)
1300 pathname = models.FilePathField(max_length=255, blank=True) 1300 pathname = models.FilePathField(max_length=255, blank=True)
1301 lineno = models.IntegerField(null=True) 1301 lineno = models.IntegerField(null=True)
1302 1302