From da8f0d1b5e26bbe1bbd9ee1ced1d0760edc40eba Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 2 Apr 2015 01:22:49 +0300 Subject: res/neo4j/reset-db__clean: remove Person.name and Skill.name constraints Reasoning: this constraint is global and so prevents a name from repeating in two documents. Note: client already prevents creation of same name node (regardless of type). Note: in the future we will want to reintroduce this but it will have to be per doc, using the doc label. --- res/neo4j/reset-db__clean.cypher | 2 -- 1 file changed, 2 deletions(-) diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher index 0cedc651..5c8c4950 100644 --- a/res/neo4j/reset-db__clean.cypher +++ b/res/neo4j/reset-db__clean.cypher @@ -19,6 +19,4 @@ create constraint on (x:__RZDOC) assert x.name is unique; create constraint on (x:Person) assert x.id is unique; create constraint on (x:Skill) assert x.id is unique; -create constraint on (x:Person) assert x.name is unique; -create constraint on (x:Skill) assert x.name is unique; -- cgit v1.3.1