Commit 51b4c2f2 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

end trusty

parent 3b361adf
Pipeline #5324 passed with stage
in 43 seconds
# Generated by Django 2.2 on 2019-08-21 15:14
from django.db import migrations
def end_trusty(apps, schema_editor):
Target = apps.get_model('rainboard', 'Target')
# Disable Trusty
Target.objects.filter(name='trusty').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', '0037_project_has_python'),
]
operations = [
migrations.RunPython(end_trusty),
]
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