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

Patches often need to be applied in a specific order. For OE recipes we were always storing the Patch objects correct order as they are refreshed every time the recipe itself is refreshed, however for other distro comparisons, import_otherdistro.py attempts to preserve existing records, adds new ones and then deletes whatever is left over, which may result in the order getting messed up over time. To avoid this issue, record the order next to the patch and set the model meta-info to use this to sort Patch queries by default. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
25 lines
627 B
Python
25 lines
627 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.16 on 2019-02-13 02:42
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('layerindex', '0026_incfile'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='patch',
|
|
name='apply_order',
|
|
field=models.IntegerField(blank=True, null=True),
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='patch',
|
|
options={'ordering': ['recipe', 'apply_order'], 'verbose_name_plural': 'Patches'},
|
|
),
|
|
]
|