001package systems.dmx.workspaces.migrations;
002
003import systems.dmx.core.service.Migration;
004
005
006
007/**
008 * Adds "Sharing Mode" to "Workspace".
009 * Runs ALWAYS.
010 * <p>
011 * Part of DM 4.5
012 */
013public class Migration3 extends Migration {
014
015    @Override
016    public void run() {
017        dmx.getTopicType("dmx.workspaces.workspace").addAssocDef(mf.newAssociationDefinitionModel(
018            "dmx.core.aggregation_def",
019            "dmx.workspaces.workspace", "dmx.workspaces.sharing_mode", "dmx.core.many", "dmx.core.one",
020            mf.newViewConfigurationModel().setConfigValueRef(
021                "dmx.webclient.view_config", "dmx.webclient.widget", "dmx.webclient.select"
022            )
023        ));
024    }
025}