From 653850fa6d9d6dafdb961ec3fbf08ce9aa64c5da Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 23 Mar 2020 22:54:04 -0400 Subject: [PATCH] Remove duplicated index --- awx/main/migrations/0112_v370_workflow_node_identifier.py | 4 ---- awx/main/models/workflow.py | 1 - 2 files changed, 5 deletions(-) diff --git a/awx/main/migrations/0112_v370_workflow_node_identifier.py b/awx/main/migrations/0112_v370_workflow_node_identifier.py index 3594cc2b57..dff2a348b3 100644 --- a/awx/main/migrations/0112_v370_workflow_node_identifier.py +++ b/awx/main/migrations/0112_v370_workflow_node_identifier.py @@ -54,10 +54,6 @@ class Migration(migrations.Migration): model_name='workflowjobnode', index=models.Index(fields=['identifier'], name='main_workfl_identif_efdfe8_idx'), ), - migrations.AddIndex( - model_name='workflowjobtemplatenode', - index=models.Index(fields=['identifier', 'workflow_job_template'], name='main_workfl_identif_6fda75_idx'), - ), migrations.AddIndex( model_name='workflowjobtemplatenode', index=models.Index(fields=['identifier'], name='main_workfl_identif_0cc025_idx'), diff --git a/awx/main/models/workflow.py b/awx/main/models/workflow.py index 2ef4123b6d..3990381623 100644 --- a/awx/main/models/workflow.py +++ b/awx/main/models/workflow.py @@ -159,7 +159,6 @@ class WorkflowJobTemplateNode(WorkflowNodeBase): app_label = 'main' unique_together = (("identifier", "workflow_job_template"),) indexes = [ - models.Index(fields=["identifier", "workflow_job_template"]), models.Index(fields=['identifier']), ]