Ticket #779 (closed Task: fixed)
Redefine Contacts data model
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.6 |
Component: | DeepaMehta Standard Distribution | Version: | 4.5 |
Keywords: | Cc: | dgf, Malte, JuergeN | |
Complexity: | 3 | Area: | Data Model |
Module: | deepamehta-contacts |
Description (last modified by jri) (diff)
Since we have association definitions with Custom Association Types (#341) the Contacts data model should make use of it in order to remove the intermediate Address Entry topics between a Person/Institution? and an Address.
Model Address Entry as an Association Type instead (a composite one, with Address Label as child type) and use it as the Custom Association Type for the association definition that (now directly!) connect Person/Institution? with Address.
Do the same for the Phone model. Replace the Phone Entry topic type by an association type.
Provide a migration that converts existing Contacts data.
Change History
comment:6 Changed 9 years ago by jri
The Contacts migration is now complete.
Existing Phone Label and Address Label data is converted properly.
=> Please help testing the upgrade process!
You can upgrade any stable DM installation (from 4.1 to 4.5) to 4.6-SNAPSHOT.
Just copy your deepamehta-db folder before starting 4.6-SNAPSHOT.
While upgrading the Contacts model is redefined (basically the topic types Phone Entry and Address Entry are replaced by respective association types) and all existing Contacts data is converted accordingly. The actual Phone and Address topics (instances) are retained and reconnected according to the new model. They are not recreated. That means the Geo Coordinate facets are retained as well and no further Geocoder lookups are performed.
After upgrading all your Contacts data is supposed to appear exactly as it was before.
You can see that e.g. a Person is now connected with Phone/Address? topics directly, utilizing the respective Entry custom association types (see #341).