mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
remove insights_system_id uniqueness constraint
This commit is contained in:
@@ -243,8 +243,4 @@ class Migration(migrations.Migration):
|
|||||||
name='insights_system_id',
|
name='insights_system_id',
|
||||||
field=models.TextField(default=None, help_text='Red Hat Insights host unique identifier.', null=True, db_index=True, blank=True),
|
field=models.TextField(default=None, help_text='Red Hat Insights host unique identifier.', null=True, db_index=True, blank=True),
|
||||||
),
|
),
|
||||||
migrations.AlterUniqueTogether(
|
|
||||||
name='host',
|
|
||||||
unique_together=set([('insights_system_id', 'inventory'), ('name', 'inventory')]),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ class Host(CommonModelNameNotUnique):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = 'main'
|
app_label = 'main'
|
||||||
unique_together = (("name", "inventory"), ("insights_system_id", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration.
|
unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration.
|
||||||
ordering = ('name',)
|
ordering = ('name',)
|
||||||
|
|
||||||
inventory = models.ForeignKey(
|
inventory = models.ForeignKey(
|
||||||
|
|||||||
Reference in New Issue
Block a user