mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
remove unneeded data migrations from squashed migrations
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import awx.main.fields
|
import awx.main.fields
|
||||||
from awx.main.migrations import _cleanup_deleted as cleanup_deleted
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
@@ -248,8 +247,6 @@ class Migration(migrations.Migration):
|
|||||||
name='fact',
|
name='fact',
|
||||||
index_together=set([('timestamp', 'module', 'host')]),
|
index_together=set([('timestamp', 'module', 'host')]),
|
||||||
),
|
),
|
||||||
# Active flag cleanup
|
|
||||||
migrations.RunPython(cleanup_deleted.cleanup_deleted),
|
|
||||||
# Active flag removal
|
# Active flag removal
|
||||||
migrations.RemoveField(
|
migrations.RemoveField(
|
||||||
model_name='credential',
|
model_name='credential',
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from awx.main.migrations import _migration_utils as migration_utils
|
|
||||||
from awx.main.migrations import _save_password_keys
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import awx.main.fields
|
import awx.main.fields
|
||||||
@@ -44,7 +41,6 @@ class Migration(migrations.Migration):
|
|||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.RunPython(migration_utils.set_current_apps_for_migrations),
|
|
||||||
# Labels Changes
|
# Labels Changes
|
||||||
migrations.RemoveField(
|
migrations.RemoveField(
|
||||||
model_name='job',
|
model_name='job',
|
||||||
@@ -146,7 +142,6 @@ class Migration(migrations.Migration):
|
|||||||
name='survey_passwords',
|
name='survey_passwords',
|
||||||
field=jsonfield.fields.JSONField(default={}, editable=False, blank=True),
|
field=jsonfield.fields.JSONField(default={}, editable=False, blank=True),
|
||||||
),
|
),
|
||||||
migrations.RunPython(_save_password_keys.migrate_survey_passwords),
|
|
||||||
# RBAC credential permission updates
|
# RBAC credential permission updates
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='credential',
|
model_name='credential',
|
||||||
@@ -158,5 +153,4 @@ class Migration(migrations.Migration):
|
|||||||
name='use_role',
|
name='use_role',
|
||||||
field=awx.main.fields.ImplicitRoleField(related_name='+', parent_role=[b'admin_role'], to='main.Role', null=b'True'),
|
field=awx.main.fields.ImplicitRoleField(related_name='+', parent_role=[b'admin_role'], to='main.Role', null=b'True'),
|
||||||
),
|
),
|
||||||
migrations.RunPython(update_dashed_host_variables),
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user