layerindex-web/rrs/migrations/0003_release_plan.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
415 B
Python

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