Make index on contactId not unique (#751)

* Make index on contactId not unique

This column cannot be unique due to the fundamantal design of the domain
model.
This commit is contained in:
Weimin Yu 2020-08-10 13:09:37 -04:00 committed by GitHub
parent f7d03de745
commit 05ddabd003
4 changed files with 27 additions and 12 deletions

View file

@ -40,7 +40,7 @@ import org.joda.time.DateTime;
@javax.persistence.Index(columnList = "creationTime"),
@javax.persistence.Index(columnList = "currentSponsorRegistrarId"),
@javax.persistence.Index(columnList = "deletionTime"),
@javax.persistence.Index(columnList = "contactId", unique = true),
@javax.persistence.Index(columnList = "contactId"),
@javax.persistence.Index(columnList = "searchName")
})
@ExternalMessagingName("contact")