001package systems.dmx.workspaces.migrations; 002 003import systems.dmx.core.service.Migration; 004 005 006 007/** 008 * Add index to the workspace property. 009 * Runs only in UPDATE mode. 010 * <p> 011 * Part of DM 4.8 012 */ 013public class Migration8 extends Migration { 014 015 // ------------------------------------------------------------------------------------------------------- Constants 016 017 // Note: copy in WorkspacesPlugin.java 018 private static final String PROP_WORKSPACE_ID = "dmx.workspaces.workspace_id"; 019 020 // -------------------------------------------------------------------------------------------------- Public Methods 021 022 @Override 023 public void run() { 024 dmx.addTopicPropertyIndex(PROP_WORKSPACE_ID); 025 dmx.addAssociationPropertyIndex(PROP_WORKSPACE_ID); 026 } 027}