summaryrefslogtreecommitdiffstats
path: root/lib/toaster/orm
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-07-20 08:57:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:08:18 +0100
commit83763d89f9d0bc535e930a2094ba8201675d40be (patch)
tree30b78c613620c5e1c02c70aab61d580df7ce405f /lib/toaster/orm
parent2c3d48e7cd21a999ef145081352774f1759cd5e4 (diff)
downloadbitbake-83763d89f9d0bc535e930a2094ba8201675d40be.tar.gz
toaster: add local_source_dir field to model
Add a new field local_source_dir to model. This will clearly differentiate us from the vcs_url which is for git path. Adding migration file 0010_layer_local_source_dir_path.py along with this patch. [YOCO #9911] Signed-off-by: Sujith H <sujith.h@gmail.com>
Diffstat (limited to 'lib/toaster/orm')
-rw-r--r--lib/toaster/orm/migrations/0015_layer_local_source_dir.py19
-rw-r--r--lib/toaster/orm/models.py1
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/toaster/orm/migrations/0015_layer_local_source_dir.py b/lib/toaster/orm/migrations/0015_layer_local_source_dir.py
new file mode 100644
index 000000000..9539cd72a
--- /dev/null
+++ b/lib/toaster/orm/migrations/0015_layer_local_source_dir.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('orm', '0014_allow_empty_buildname'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='layer',
+ name='local_source_dir',
+ field=models.TextField(null=True, default=None),
+ ),
+ ]
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 1c9f3a936..432b51e0e 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -1353,6 +1353,7 @@ class Layer(models.Model):
name = models.CharField(max_length=100)
layer_index_url = models.URLField()
vcs_url = GitURLField(default=None, null=True)
+ local_source_dir = models.TextField(null = True, default = None)
vcs_web_url = models.URLField(null=True, default=None)
vcs_web_tree_base_url = models.URLField(null=True, default=None)
vcs_web_file_base_url = models.URLField(null=True, default=None)