mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Move post 3.0 migrations to pre 3.1 position in migration files
This commit is contained in:
@@ -9,9 +9,6 @@ from django.db import migrations, models
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import awx.main.fields
|
import awx.main.fields
|
||||||
|
|
||||||
import _squashed
|
|
||||||
from _squashed_30 import SQUASHED_30
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
replaces = [(b'main', '0020_v300_labels_changes'),
|
replaces = [(b'main', '0020_v300_labels_changes'),
|
||||||
@@ -22,8 +19,7 @@ class Migration(migrations.Migration):
|
|||||||
(b'main', '0025_v300_update_rbac_parents'),
|
(b'main', '0025_v300_update_rbac_parents'),
|
||||||
(b'main', '0026_v300_credential_unique'),
|
(b'main', '0026_v300_credential_unique'),
|
||||||
(b'main', '0027_v300_team_migrations'),
|
(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 = [
|
dependencies = [
|
||||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
@@ -120,4 +116,4 @@ class Migration(migrations.Migration):
|
|||||||
field=models.ForeignKey(related_name='teams', to='main.Organization'),
|
field=models.ForeignKey(related_name='teams', to='main.Organization'),
|
||||||
preserve_default=False,
|
preserve_default=False,
|
||||||
),
|
),
|
||||||
] + _squashed.operations(SQUASHED_30)
|
]
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import django.db.models.deletion
|
|||||||
import awx.main.models.workflow
|
import awx.main.models.workflow
|
||||||
import awx.main.fields
|
import awx.main.fields
|
||||||
|
|
||||||
|
import _squashed
|
||||||
|
from _squashed_30 import SQUASHED_30
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
@@ -15,11 +18,11 @@ class Migration(migrations.Migration):
|
|||||||
('main', '0003_squashed_v300_v303_updates'),
|
('main', '0003_squashed_v300_v303_updates'),
|
||||||
]
|
]
|
||||||
|
|
||||||
replaces = [
|
replaces = _squashed.replaces(SQUASHED_30) + [
|
||||||
(b'main', '0034_v310_release'),
|
(b'main', '0034_v310_release'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = _squashed.operations(SQUASHED_30) + [
|
||||||
# Create ChannelGroup table
|
# Create ChannelGroup table
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='ChannelGroup',
|
name='ChannelGroup',
|
||||||
|
|||||||
Reference in New Issue
Block a user