mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
09a1ff9743
commit
646b089c38
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user