From f9685717b826b4fe0888134a92c7534607fb7ad5 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 2 Nov 2017 11:41:59 -0400 Subject: [PATCH] Move post 3.0 migrations to pre 3.1 position in migration files --- awx/main/migrations/0003_squashed_v300_v303_updates.py | 8 ++------ awx/main/migrations/0004_squashed_v310_release.py | 7 +++++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/awx/main/migrations/0003_squashed_v300_v303_updates.py b/awx/main/migrations/0003_squashed_v300_v303_updates.py index 39635353c1..042c036665 100644 --- a/awx/main/migrations/0003_squashed_v300_v303_updates.py +++ b/awx/main/migrations/0003_squashed_v300_v303_updates.py @@ -9,9 +9,6 @@ from django.db import migrations, models from django.conf import settings import awx.main.fields -import _squashed -from _squashed_30 import SQUASHED_30 - class Migration(migrations.Migration): replaces = [(b'main', '0020_v300_labels_changes'), @@ -22,8 +19,7 @@ class Migration(migrations.Migration): (b'main', '0025_v300_update_rbac_parents'), (b'main', '0026_v300_credential_unique'), (b'main', '0027_v300_team_migrations'), - (b'main', '0028_v300_org_team_cascade')] + _squashed.replaces(SQUASHED_30) - + (b'main', '0028_v300_org_team_cascade')] dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), @@ -120,4 +116,4 @@ class Migration(migrations.Migration): field=models.ForeignKey(related_name='teams', to='main.Organization'), preserve_default=False, ), - ] + _squashed.operations(SQUASHED_30) + ] diff --git a/awx/main/migrations/0004_squashed_v310_release.py b/awx/main/migrations/0004_squashed_v310_release.py index e4b1df2290..f4263feaa3 100644 --- a/awx/main/migrations/0004_squashed_v310_release.py +++ b/awx/main/migrations/0004_squashed_v310_release.py @@ -8,6 +8,9 @@ import django.db.models.deletion import awx.main.models.workflow import awx.main.fields +import _squashed +from _squashed_30 import SQUASHED_30 + class Migration(migrations.Migration): @@ -15,11 +18,11 @@ class Migration(migrations.Migration): ('main', '0003_squashed_v300_v303_updates'), ] - replaces = [ + replaces = _squashed.replaces(SQUASHED_30) + [ (b'main', '0034_v310_release'), ] - operations = [ + operations = _squashed.operations(SQUASHED_30) + [ # Create ChannelGroup table migrations.CreateModel( name='ChannelGroup',