aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/migrations
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-12-18 22:44:24 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit2da4f5d99beb5d106f9a7f43f75d2486f2928417 (patch)
tree7faf401c23704339c5a0796e2f45bb1e99346828 /layerindex/migrations
parent5ed5f748f2db2b781d34184767561cb7b796a45d (diff)
downloadopenembedded-core-contrib-2da4f5d99beb5d106f9a7f43f75d2486f2928417.tar.gz
Implement patch tracking
Collect information about patches applied by a recipe, and record each patch along with the upstream status, presenting them in the recipe detail. Implements [YOCTO #7909]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/migrations')
-rw-r--r--layerindex/migrations/0013_patch.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/layerindex/migrations/0013_patch.py b/layerindex/migrations/0013_patch.py
new file mode 100644
index 0000000000..9e7180e943
--- /dev/null
+++ b/layerindex/migrations/0013_patch.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('layerindex', '0012_layeritem_vcs_commit_url'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Patch',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
+ ('path', models.CharField(max_length=255)),
+ ('src_path', models.CharField(max_length=255)),
+ ('status', models.CharField(default='U', choices=[('U', 'Unknown'), ('A', 'Accepted'), ('P', 'Pending'), ('I', 'Inappropriate'), ('B', 'Backport'), ('S', 'Submitted'), ('D', 'Denied')], max_length=1)),
+ ('status_extra', models.CharField(blank=True, max_length=255)),
+ ('recipe', models.ForeignKey(to='layerindex.Recipe')),
+ ],
+ options={
+ 'verbose_name_plural': 'Patches',
+ },
+ ),
+ ]