diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-04-28 22:11:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 16:18:12 +0100 |
commit | 646b089c38623cebe4a6b22c6798d21453fe5257 (patch) | |
tree | 71f62c89dba88f4d8e5f9e138338865991454f4a /bitbake/lib/toaster/orm/models.py | |
parent | 09a1ff974362216a9ebf40e5dad86b171d161b0c (diff) | |
download | ast2050-yocto-poky-646b089c38623cebe4a6b22c6798d21453fe5257.zip ast2050-yocto-poky-646b089c38623cebe4a6b22c6798d21453fe5257.tar.gz |
bitbake: toaster: modify SQL data type constraints
This patch modifies the data type constraints for the SQL
fields.
The original constraints have been based on guess worked, and
they weren't strictly enforced for sqlite. On MySQL, the
constraints are strictly enforced, and need to match the real
data that we have.
After measuring data on sample builds, the new constraints
have been validated to work with MySQL, and this patch updates
the database schema with the new field types / constraints.
(Bitbake rev: aaefbc0b4e7484d6f4854ce49602821a6e4adc4b)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.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.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 22c66a9..8aa7126 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -72,7 +72,7 @@ class Target(models.Model): class Target_Image_File(models.Model): target = models.ForeignKey(Target) - file_name = models.FilePathField(max_length=100) + file_name = models.FilePathField(max_length=254) file_size = models.IntegerField() class Target_File(models.Model): @@ -230,7 +230,7 @@ class Package(models.Model): version = models.CharField(max_length=100, blank=True) revision = models.CharField(max_length=32, blank=True) summary = models.CharField(max_length=200, blank=True) - description = models.CharField(max_length=200, blank=True) + description = models.TextField(blank=True) size = models.IntegerField(default=0) installed_size = models.IntegerField(default=0) section = models.CharField(max_length=80, blank=True) @@ -298,7 +298,7 @@ class Recipe(models.Model): version = models.CharField(max_length=100, blank=True) layer_version = models.ForeignKey('Layer_Version', related_name='recipe_layer_version') summary = models.CharField(max_length=100, blank=True) - description = models.CharField(max_length=100, blank=True) + description = models.TextField(blank=True) section = models.CharField(max_length=100, blank=True) license = models.CharField(max_length=200, blank=True) homepage = models.URLField(blank=True) @@ -353,7 +353,7 @@ class VariableHistory(models.Model): value = models.TextField(blank=True) file_name = models.FilePathField(max_length=255) line_number = models.IntegerField(null=True) - operation = models.CharField(max_length=16) + operation = models.CharField(max_length=64) class HelpText(models.Model): VARIABLE = 0 |