layerindex-web/rrs/migrations/0025_recipeupgrade_move.py
Paul Eggleton ecb053472b RRS: handle recipe moves without overwriting data
If we ever want to analyse the upgrade chain later on then we need to
avoid overwriting the paths when we identify a moved recipe - instead,
store a "move" upgrade record (not shown in the UI) that we can later
pick up when we are going through and deleting.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21 02:27:39 +13:00

26 lines
776 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-18 22:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rrs', '0024_recipeupgrade_downgrade'),
]
operations = [
migrations.AddField(
model_name='recipeupgrade',
name='orig_filepath',
field=models.CharField(blank=True, max_length=512),
),
migrations.AlterField(
model_name='recipeupgrade',
name='upgrade_type',
field=models.CharField(choices=[('U', 'Upgrade'), ('D', 'Downgrade'), ('N', 'Delete'), ('R', 'Delete (final)'), ('M', 'Move')], db_index=True, default='U', max_length=1),
),
]