layerindex-web/rrs/migrations/0011_release_name_unique.py
Paul Eggleton 1f037470fb 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>
2018-05-04 23:57:53 +12:00

24 lines
533 B
Python

# -*- 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')]),
),
]