summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-02 01:22:49 +0300
committerAlon Levy <alon@pobox.com>2015-04-02 01:22:51 +0300
commitda8f0d1b5e26bbe1bbd9ee1ced1d0760edc40eba (patch)
treeadc3631f7a19a4d1fbb9efd9a2cbd25b7cef01b4
parentb5dbfff3d4039107e9a4666a98cfa26c1f02162e (diff)
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.
-rw-r--r--res/neo4j/reset-db__clean.cypher2
1 files changed, 0 insertions, 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;