aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/migrations
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-09 08:48:01 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-14 15:19:53 +1300
commit51614fe5a0594606ddd1fd718c00d11d8e9c72fe (patch)
tree44a7c8aeb0cc12f23e129b20ab1b58a0ffe8a27f /layerindex/migrations
parent2919424f89d898849fb6112f1393f1aac2ca1563 (diff)
downloadopenembedded-core-contrib-51614fe5a0594606ddd1fd718c00d11d8e9c72fe.tar.gz
layerindex: add "No update" status to LayerItem
Add a status for a layer indicating it should not be updated. I don't expect this to be widely used (and is only settable from the admin interface) but would be useful if you have a legacy sub-layer that you want to prevent from being visible on certain branches - it will prevent the update script from doing anything with the layer and thus avoid branch records from being auto-created on branches where you've deleted it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/migrations')
-rw-r--r--layerindex/migrations/0007_layeritem_status_noupdate.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/layerindex/migrations/0007_layeritem_status_noupdate.py b/layerindex/migrations/0007_layeritem_status_noupdate.py
new file mode 100644
index 0000000000..e917b0e8f1
--- /dev/null
+++ b/layerindex/migrations/0007_layeritem_status_noupdate.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('layerindex', '0006_change_branch_meta'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='layeritem',
+ name='status',
+ field=models.CharField(default='N', choices=[('N', 'New'), ('P', 'Published'), ('X', 'No update')], max_length=1),
+ ),
+ ]