layerindex-web/rrs/migrations/0005_release_plan_nonnull.py
Paul Eggleton 24960bb7be rrs: add Release link to MaintenancePlan
If any Releases exist then we create a default MaintenancePlan and then
link all Releases to it - this needs to be done in multiple upgrade
steps since the field needs to be non-null.

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

20 lines
409 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rrs', '0004_maint_plan_default'),
]
operations = [
migrations.AlterField(
model_name='release',
name='plan',
field=models.ForeignKey(to='rrs.MaintenancePlan'),
),
]