Added procedure to upgrade DB to IS model 7.1.0
This commit is contained in:
parent
f85fb9948f
commit
8e4f173917
|
@ -30,10 +30,12 @@ import org.gcube.informationsystem.types.reference.relations.RelationType;
|
|||
import org.gcube.informationsystem.utils.Version;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.Actor;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.RunningPlugin;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.Service;
|
||||
import org.gcube.resourcemanagement.model.reference.properties.AttributeProperty;
|
||||
import org.gcube.resourcemanagement.model.reference.properties.ValueSchema;
|
||||
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasVolatileMemory;
|
||||
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Hosts;
|
||||
|
@ -400,4 +402,41 @@ public class SchemaManagementImplTest extends ContextTest {
|
|||
compareTypes(type, typeManaged);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void updateTypeISModel7_1_0() throws Exception {
|
||||
// TypeManagement typeManagement = new TypeManagement();
|
||||
// String typeName = PropertyDefinition.NAME;
|
||||
// typeManagement.setTypeName(typeName);
|
||||
// logger.info("Going to delete {}", typeName);
|
||||
// typeManagement.delete(AccessType.PROPERTY_ELEMENT);
|
||||
//
|
||||
//
|
||||
// Type type = TypeMapper.createTypeDefinition(PropertyDefinition.class);
|
||||
// logger.info("Going to create {} : {}", type.getName(), TypeMapper.serializeTypeDefinition(type));
|
||||
// String ret = create(PropertyDefinition.class);
|
||||
// logger.info("Created {} : {}", type.getName(), ret);
|
||||
// Type typeManaged = TypeMapper.deserializeTypeDefinition(ret);
|
||||
// compareTypes(type, typeManaged);
|
||||
|
||||
|
||||
// TypeManagement typeManagement = new TypeManagement();
|
||||
// String typeName = TemplateVariable.NAME;
|
||||
// typeManagement.setTypeName(typeName);
|
||||
// logger.info("Going to delete {}", typeName);
|
||||
// typeManagement.delete(AccessType.PROPERTY_ELEMENT);
|
||||
|
||||
|
||||
// Type type = TypeMapper.createTypeDefinition(TemplateVariable.class);
|
||||
// logger.info("Going to create {} : {}", type.getName(), TypeMapper.serializeTypeDefinition(type));
|
||||
// String ret = create(TemplateVariable.class);
|
||||
// logger.info("Created {} : {}", type.getName(), ret);
|
||||
// Type typeManaged = TypeMapper.deserializeTypeDefinition(ret);
|
||||
// compareTypes(type, typeManaged);
|
||||
|
||||
// create(AttributeProperty.class);
|
||||
|
||||
// create(TemplateFacet.class);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue