layerindex-web/rrs/migrations/0018_rmh_unique.py
Paul Eggleton 32617fc366 rrs: fix unique constraint on RecipeMaintainerHistory sha1 field
Although it's unlikely to be an issue, technically we shouldn't be
insisting the sha1 field be unique globally, just within each
layerbranch, so adjust the constraints.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04 23:57:53 +12:00

26 lines
670 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-18 05:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('layerindex', '0013_patch'),
('rrs', '0017_maintenanceplan_maintainer_style'),
]
operations = [
migrations.AlterField(
model_name='recipemaintainerhistory',
name='sha1',
field=models.CharField(max_length=64),
),
migrations.AlterUniqueTogether(
name='recipemaintainerhistory',
unique_together=set([('layerbranch', 'sha1')]),
),
]