mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00

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>
20 lines
409 B
Python
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'),
|
|
),
|
|
]
|