Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Removes uniqueness constraint on unit key
Browse files Browse the repository at this point in the history
This uniqueness contstraint is now enforced by the platform for all content units.

https://pulp.plan.io/issues/1477
re: 1477
  • Loading branch information
dkliban committed Feb 5, 2016
1 parent b27118a commit a902085
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/pulp_docker/plugins/models.py
Expand Up @@ -256,6 +256,5 @@ class Tag(pulp_models.ContentUnit):
# unit_key_fields we defined above: https://pulp.plan.io/issues/1477
# Until that issue is resolved, we need to install a uniqueness constraint here.
meta = {'collection': 'units_{type_id}'.format(type_id=constants.TAG_TYPE_ID),
'indexes': [{'unique': True, 'fields': list(unit_key_fields)}],
'allow_inheritance': False,
'queryset_class': TagQuerySet}

0 comments on commit a902085

Please sign in to comment.