Merge pull request #10174 from jbradberry/remove-isolated-instances

Data migration to remove the isolated instances from the database

SUMMARY


ISSUE TYPE


Feature Pull Request

COMPONENT NAME


API

AWX VERSION



  
    
    
  


ADDITIONAL INFORMATION

Reviewed-by: Elyézer Rezende <None>
Reviewed-by: Alan Rominger <arominge@redhat.com>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-05-12 14:27:03 +00:00 committed by GitHub
commit e970620672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
# Generated by Django 2.2.16 on 2021-05-11 19:38
from django.db import migrations
def forwards(apps, schema_editor):
Instance = apps.get_model('main', 'Instance')
Instance.objects.filter(version__startswith='ansible-runner-').delete()
class Migration(migrations.Migration):
dependencies = [
('main', '0140_rename'),
]
operations = [
migrations.RunPython(forwards),
]