Commit 6613cbd0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

end stretch

parent 038ec2b8
Pipeline #15935 failed with stage
in 5 minutes and 22 seconds
# Generated by Django 3.2.5 on 2021-09-07 13:26
from django.db import migrations
def end_stretch(apps, schema_editor):
Target = apps.get_model('rainboard', 'Target')
# Disable stretch
Target.objects.filter(name='stretch').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', '0060_remove_project_ccache'),
]
operations = [migrations.RunPython(end_stretch)]
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