layerindex-web/rrs/migrations/0008_upgrade_info.py
Paul Eggleton 7831eec543 rrs_upgrade_history: use date/commit of last recipe upgrade import
Instead of arbitrarily importing the last 8 days of upgrades, record the
date and commit when we do an import, and then use that information the
next time the script is run.

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

25 lines
689 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rrs', '0007_python23'),
]
operations = [
migrations.AddField(
model_name='maintenanceplanlayerbranch',
name='upgrade_date',
field=models.DateTimeField(verbose_name='Recipe upgrade date', blank=True, null=True),
),
migrations.AddField(
model_name='maintenanceplanlayerbranch',
name='upgrade_rev',
field=models.CharField(verbose_name='Recipe upgrade revision ', max_length=80, blank=True),
),
]