We _could_ try to enforce this at the db level, but I don't think I'd want the user to get an exception if they try this - it's not like it would really hurt anything to have 2 tags. It might be easier to just add application-level checks to only add a new Row to the table if the definition_uuid / tag combination doesn't exist. Either way, we could inform the user that the tag they have added already exists and continue as normal...

On 04/03/2012 11:24 AM, Burke Mamlin wrote:
Shouldn't tags be unique -- i.e., you shouldn't be able to create duplicate tags (same string) on the same object, right? Can we enforce that at the database level?

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to