]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: add local_source_dir field to model
authorSujith H <sujith.h@gmail.com>
Wed, 20 Jul 2016 08:57:11 +0000 (08:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:08:18 +0000 (00:08 +0100)
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>
lib/toaster/orm/migrations/0015_layer_local_source_dir.py [new file with mode: 0644]
lib/toaster/orm/models.py

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 (file)
index 0000000..9539cd7
--- /dev/null
@@ -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),
+        ),
+    ]
index 1c9f3a93639e5149f30cccffc93ca6a4bb7e66b9..432b51e0e1d5301b40e92857b505ece306af3329 100644 (file)
@@ -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)