Commit b191216b authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update distros

parent ec75f78d
Pipeline #5187 passed with stage
in 24 seconds
# Generated by Django 2.2.4 on 2019-08-08 15:30
from enum import IntEnum
from django.db import migrations
def add_targets(apps, schema_editor):
Target = apps.get_model('rainboard', 'Target')
# Add stretch
Target.objects.create(name='stretch', active=True)
# Disable dubnium, jessie & erbium
Target.objects.filter(name='dubnium').update(active=False)
Target.objects.filter(name='jessie').update(active=False)
Target.objects.filter(name='erbiurm').update(active=False)
# Remove old images
Image = apps.get_model('rainboard', 'Image')
Image.objects.filter(target__active=False).delete()
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0035_oops'),
]
operations = [
migrations.RunPython(add_targets),
]
......@@ -9,7 +9,7 @@ from django.utils.safestring import mark_safe
logger = logging.getLogger('rainboard.utils')
SOURCES = IntEnum('Sources', 'github gitlab redmine robotpkg travis')
TARGETS = IntEnum('Targets', '14.04 16.04 17.10 18.04 dubnium jessie')
TARGETS = IntEnum('Targets', '14.04 16.04 17.10 18.04 dubnium jessie erbium stretch')
INVALID_MAILS = ('localhost', 'none', 'noreply', 'example')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment