aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/migrations/0011_release_name_unique.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-09 16:36:13 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit1f037470fb999f6799c2db1774bc00b4a205c17f (patch)
treef062c4dad3b1e6fd093dc7e9706013524458ca80 /rrs/migrations/0011_release_name_unique.py
parent183ba0f7eb3024cd8072689736ae8ca7fb5f9477 (diff)
downloadopenembedded-core-contrib-1f037470fb999f6799c2db1774bc00b4a205c17f.tar.gz
rrs: releases should be unique by plan and name, not just name
I missed changing this constraint when adding the plan field. We want to be able to have the same named release on another plan. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/migrations/0011_release_name_unique.py')
-rw-r--r--rrs/migrations/0011_release_name_unique.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/rrs/migrations/0011_release_name_unique.py b/rrs/migrations/0011_release_name_unique.py
new file mode 100644
index 0000000000..0c2442df08
--- /dev/null
+++ b/rrs/migrations/0011_release_name_unique.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('rrs', '0010_recipemaintenancelink'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='release',
+ name='name',
+ field=models.CharField(max_length=100),
+ ),
+ migrations.AlterUniqueTogether(
+ name='release',
+ unique_together=set([('plan', 'name')]),
+ ),
+ ]