-
Committer:
Tarmac
-
Author(s):
Rick Harris
-
Date:
2010-10-15 17:16:50 UTC
-
mfrom:
(14.2.1 lp660812)
-
Revision ID:
hudson@openstack.org-20101015171650-vxhcj1gjkl32ynug
This patch removes unique index on the 'key' column of image_metadatum and replaces it with a compound UniqueConstraint on 'image_id' and 'key'. The 'key' column remains indexed.
Adds tests to ensure that two different images can use the same key, while preventing a single image from having two keys with the same name.