mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
remove insights_system_id uniqueness constraint
This commit is contained in:
parent
e81a7e1c25
commit
136bdc06e9
@ -243,8 +243,4 @@ class Migration(migrations.Migration):
|
||||
name='insights_system_id',
|
||||
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:
|
||||
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',)
|
||||
|
||||
inventory = models.ForeignKey(
|
||||
|
Loading…
Reference in New Issue
Block a user