Commit f3c16a5c authored by Jörg Richter's avatar Jörg Richter

Add migration to rename "Identity" -> "Entity" (#341)

parent 157b57f3
Pipeline #10074 passed with stages
in 8 minutes and 10 seconds
......@@ -24,7 +24,7 @@ class MigrationManager {
// ------------------------------------------------------------------------------------------------------- Constants
private static final String CORE_MIGRATIONS_PACKAGE = "systems.dmx.core.migrations";
private static final int CORE_MODEL_VERSION = 3;
private static final int CORE_MODEL_VERSION = 4;
// ---------------------------------------------------------------------------------------------- Instance Variables
......
package systems.dmx.core.migrations;
import systems.dmx.core.Topic;
import systems.dmx.core.model.SimpleValue;
import systems.dmx.core.service.Migration;
/**
* Renames data type "Identity" -> "Entity".
*
* Part of DMX 5.0
* Runs on UPDATE
*/
public class Migration4 extends Migration {
@Override
public void run() {
Topic identity = dmx.getTopicByUri("dmx.core.identity");
identity.setUri("dmx.core.entity");
identity.setSimpleValue(new SimpleValue("Entity"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment