Permalink
Browse files

[GRAPHDB-525] fixed ALTER VERTEX TYPE MANDATORY, now working

  • Loading branch information...
1 parent a5547ab commit c7bebdc234769216ce92a5952cc5db69705199eb @sunlounger sunlounger committed Dec 7, 2011
@@ -2163,6 +2163,18 @@ private LinkedList<VertexTypePredefinition> ConvertLinkedList(IEnumerable<ATypeP
var defaultValue = property.DefaultValue;
+ var mandatoryConstraintUpdate = new VertexUpdateDefinition(null,
+ new StructuredPropertiesUpdate(
+ new Dictionary<long, IComparable>
+ { { (long)AttributeDefinitions.PropertyDotIsMandatory,
+ true } }));
+
+ _vertexManager.ExecuteManager.VertexStore.UpdateVertex(mySecurityToken,
+ myTransactionToken,
+ property.ID,
+ (long)BaseTypes.Property,
+ mandatoryConstraintUpdate);
+
//get new mandatory value and set it
if (aMandatory.DefaultValue != null)
{

0 comments on commit c7bebdc

Please sign in to comment.