summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 9b7387a8af..f19a4370c8 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -37,13 +37,15 @@ class ProjectManager(models.Manager):
37 name = "meta", 37 name = "meta",
38 giturl = "git://git.yoctoproject.org/poky", 38 giturl = "git://git.yoctoproject.org/poky",
39 commit = branch, 39 commit = branch,
40 dirpath = "meta") 40 dirpath = "meta",
41 optional = False)
41 42
42 ProjectLayer.objects.create(project = prj, 43 ProjectLayer.objects.create(project = prj,
43 name = "meta-yocto", 44 name = "meta-yocto",
44 giturl = "git://git.yoctoproject.org/poky", 45 giturl = "git://git.yoctoproject.org/poky",
45 commit = branch, 46 commit = branch,
46 dirpath = "meta-yocto") 47 dirpath = "meta-yocto",
48 optional = False)
47 49
48 return prj 50 return prj
49 51
@@ -116,6 +118,7 @@ class Build(models.Model):
116class ProjectTarget(models.Model): 118class ProjectTarget(models.Model):
117 project = models.ForeignKey(Project) 119 project = models.ForeignKey(Project)
118 target = models.CharField(max_length=100) 120 target = models.CharField(max_length=100)
121 task = models.CharField(max_length=100, null=True)
119 122
120@python_2_unicode_compatible 123@python_2_unicode_compatible
121class Target(models.Model): 124class Target(models.Model):
@@ -392,6 +395,7 @@ class ProjectLayer(models.Model):
392 giturl = models.CharField(max_length = 254) 395 giturl = models.CharField(max_length = 254)
393 commit = models.CharField(max_length = 254) 396 commit = models.CharField(max_length = 254)
394 dirpath = models.CharField(max_length = 254) 397 dirpath = models.CharField(max_length = 254)
398 optional = models.BooleanField(default = True)
395 399
396class Layer(models.Model): 400class Layer(models.Model):
397 name = models.CharField(max_length=100) 401 name = models.CharField(max_length=100)