1
0
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:
Chris Meyers 2017-05-18 12:50:51 -04:00
parent e81a7e1c25
commit 136bdc06e9
2 changed files with 1 additions and 5 deletions

View File

@ -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')]),
),
]

View File

@ -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(