001package systems.dmx.contacts.migrations; 002 003import systems.dmx.core.model.AssociationDefinitionModel; 004import systems.dmx.core.service.Migration; 005 006 007 008/** 009 * Adds "Date of Birth" to Person. 010 * Runs ALWAYS. 011 * <p> 012 * Part of DM 4.8 013 */ 014public class Migration4 extends Migration { 015 016 @Override 017 public void run() { 018 dmx.getTopicType("dmx.contacts.person") 019 .addAssocDefBefore( 020 mf.newAssociationDefinitionModel("dmx.core.composition_def", "dmx.contacts.date_of_birth", false, false, 021 "dmx.contacts.person", "dmx.datetime.date", "dmx.core.one", "dmx.core.one"), 022 "dmx.contacts.phone_number#dmx.contacts.phone_entry"); 023 } 024}